1let cmplz_cookie_data=[],cmplzCleanCookieInterval;function cmplz_log(...e){"undefined"!=typeof complianz&&complianz.debug&&console.warn(...e)}function cmplz_create_element(e,t){e=document.createElement(e);return e.innerHtml=t,e}function cmplz_add_event(e,t,c){document.addEventListener(e,e=>{e.target.closest(t)&&c(e)})}function cmplz_is_hidden(e){return null===e.offsetParent}function cmplz_html_decode(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}function cmplz_sanitize_placeholder_html(e){var t=document.createElement("template");return t.innerHTML=String(e||""),t.content.querySelectorAll("script, iframe, object, embed, link, style, base, meta").forEach(e=>{e.remove()}),t.content.querySelectorAll("*").forEach(n=>{Array.from(n.attributes).forEach(e=>{var t,c=e.name.toLowerCase();0!==c.indexOf("on")&&(t=e.value.trim(),"href"!==c&&"src"!==c&&"xlink:href"!==c||!/^\s*(javascript:|data:)/i.test(t))||n.removeAttribute(e.name)})}),t.innerHTML}function cmplz_is_safe_script_src(e){if("string"!=typeof e)return!1;e=e.trim();if(!e)return!1;try{var t=new URL(e,window.location.href);return"http:"===t.protocol||"https:"===t.protocol}catch(e){return!1}}function cmplz_trap_focus(){var e;cmplz_banner&&(cmplz_original_active_element=cmplz_banner.ownerDocument.activeElement,complianz.soft_cookiewall&&document.body.classList.add("cmplz-banner-active"),document.addEventListener("keydown",cmplz_handle_tab_navigation),0<(e=cmplz_banner.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).length)&&e[0].focus()}function cmplz_handle_tab_navigation(e){var t,c,n,o;"Tab"===e.key&&cmplz_banner&&(0===(c=Array.from(cmplz_banner.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(function(e){return null!==e.offsetParent})).length?e.preventDefault():(t=c[0],c=c[c.length-1],n=cmplz_banner.ownerDocument.activeElement,o=cmplz_banner.contains(n),e.shiftKey?o&&n!==t||(e.preventDefault(),c.focus()):o&&n!==c||(e.preventDefault(),t.focus())))}function cmplz_release_focus_trap(){document.removeEventListener("keydown",cmplz_handle_tab_navigation),document.body.classList.remove("cmplz-banner-active");var e=cmplz_banner_trigger_source;if(cmplz_banner_trigger_source="page-load","manage-consent"===e){if(cmplz_original_active_element&&cmplz_original_active_element.focus)try{cmplz_original_active_element.focus()}catch(e){document.body.focus()}}else cmplz_last_input_was_keyboard&&(document.querySelector('a[href="#content"], a[href="#main"], a[href="#main-content"], .skip-link')||document.body).focus()}function cmplzLoadConsentAreaContent(e,r){document.querySelectorAll(".cmplz-consent-area.cmplz-placeholder").forEach(t=>{let c=t.getAttribute("data-category"),n=t.getAttribute("data-service");var o=t.getAttribute("data-post_id"),a=t.getAttribute("data-block_id");if(e===c||r===n){let e=new XMLHttpRequest;e.open("GET",complianz.url+"consent-area/"+o+"/"+a,!0),e.setRequestHeader("Content-type","application/json"),e.send(),t.classList.remove("cmplz-placeholder"),e.onload=function(){t.innerHTML=JSON.parse(e.response),t.querySelectorAll("script").forEach(e=>{cmplz_run_script(e.innerHTML,c,n,"inline",e)})}}})}document.querySelectorAll(".cmplz-consent-area.cmplz-placeholder").forEach(e=>{e.addEventListener("click",e=>{let t=e.target;(t=t.classList.contains("cmplz-consent-area")?t:e.target.closest(".cmplz-consent-area.cmplz-placeholder"))&&(cmplz_set_service_consent(e=t.getAttribute("data-service"),!0),cmplzLoadConsentAreaContent(!1,e),cmplz_enable_category(null,e),cmplz_set_banner_status("dismissed"))}),document.addEventListener("cmplz_enable_category",function(e){cmplzLoadConsentAreaContent(e.detail.category,e.detail.service)})}),document.addEventListener("cmplz_manage_consent_container_loaded",function(){var e,t=window.location.href;-1!==t.indexOf("#")&&(e=-1!==t.lastIndexOf("?")?t.lastIndexOf("?"):void 0,t=t.substring(t.indexOf("#")+1,e),e=document.getElementById(t))&&(t=e.getBoundingClientRect().top+window.pageYOffset-200,window.scrollTo({top:t,behavior:"smooth"}))}),complianz.locale=complianz.locale+"&token="+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5),(()=>{function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var c=document.createEvent("CustomEvent");return c.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),c}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)})();let cmplz_banner,cmplz_banner_container=document.getElementById("cmplz-cookiebanner-container"),cmplz_manage_consent_button,cmplz_waiting_inline_scripts=[],cmplz_waiting_scripts=[],cmplz_fired_scripts=[],cmplz_placeholder_class_index=0,cmplz_all_scripts_hook_fired=!1,cmplz_consent_stored_once=!1,cmplz_fired_category_events=["functional"],cmplz_fired_service_events=[],cmplz_categories=["functional","preferences","statistics","marketing"],cmplz_original_active_element=null,cmplz_banner_trigger_source="page-load",cmplz_last_input_was_keyboard=!1,cmplz_set_category_as_body_class=(document.addEventListener("keydown",function(){cmplz_last_input_was_keyboard=!0},!0),document.addEventListener("pointerdown",function(){cmplz_last_input_was_keyboard=!1},!0),window.cmplz_get_cookie=function(t){if("undefined"!=typeof document){t=complianz.prefix+t;var c=document.cookie.split(";");for(let e=0;e<c.length;e++){var n=c[e].trim();if(n.startsWith(t+"="))return n.substring(t.length+1)}}return""},window.cmplz_set_cookie=function(e,t,c){var n,o,a,r;"undefined"!=typeof document&&(c=void 0===c||c,n="https:"===window.location.protocol?";
1secure":"",(o=new Date).setTime(o.getTime()+24*complianz.cookie_expiry*60*60*1e3),o=";expires="+o.toGMTString(),a=0<(a=cmplz_get_cookie_domain()).length?";domain="+a:"",c=c?complianz.prefix:"",r=cmplz_get_cookie_path(),document.cookie=""+c+e+`=${t};SameSite=Lax${n}${o}${a};path=`+r)},window.cmplz_in_array=function(e,t){return t.includes(e)},window.cmplz_highest_accepted_category=function(){var t=cmplz_accepted_categories(),c=["marketing","statistics","preferences"];for(let e=0;e<c.length;e++)if(cmplz_in_array(c[e],t))return c[e];return"functional"},()=>{let c=document.body.classList;for(let e=c.length-1;0<=e;e--)c[e].startsWith("cmplz-")&&"cmplz-document"!==c[e]&&c.remove(c[e]);var e=cmplz_accepted_categories(),e=(Object.values(e).forEach(e=>{"string"==typeof e&&c.add("cmplz-"+e)}),cmplz_get_all_service_consents()),e=(Object.entries(e).forEach(([e,t])=>{t&&c.add("cmplz-"+e)}),c.add("cmplz-"+complianz.region,"cmplz-"+complianz.consenttype),new CustomEvent("cmplz_set_category_as_bodyclass"));document.dispatchEvent(e)}),cmplz_append_css=e=>{var t=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.setAttribute("type","text/css"),c.appendChild(document.createTextNode(e)),t.appendChild(c)},cmplz_load_css=e=>{var t=document.head||document.getElementsByTagName("head")[0],c=document.createElement("link");c.rel="stylesheet",c.type="text/css",c.href=e,t.appendChild(c)};function cmplz_run_script(t,c,n,e,o){var a=document.createElement("script");if("inline"!==e&&cmplz_is_safe_script_src(t)?a.src=t:("string"!=typeof t&&(t=t.innerHTML),a.textContent=[t,"cmplzScriptLoaded();"].join("\n")),!cmplz_in_array(t,cmplz_fired_scripts)){cmplzCopyAttributes(o,a);try{"inline"!==e?a.onload=function(){cmplz_run_after_all_scripts(c,n),cmplz_maybe_run_waiting_scripts(t,c,n,o)}:window.cmplzScriptLoaded=function(){cmplz_run_after_all_scripts(c,n),cmplz_maybe_run_waiting_scripts(t,c,n,o)},document.head.appendChild(a)}catch(e){throw cmplz_run_after_all_scripts(c,n),"Something went wrong "+e+" while loading "+t}}}function cmplz_maybe_run_waiting_scripts(e,t,c,n){var o=cmplz_get_waiting_script(cmplz_waiting_scripts,e),o=(o&&cmplz_run_script(o,t,c,"src",n),cmplz_get_waiting_script(cmplz_waiting_inline_scripts,e));o&&cmplz_run_script(o,t,c,"inline",n)}let cmplzLazyLoader=()=>{var e=document.querySelectorAll(".cmplz-blocked-content-container");let t=new IntersectionObserver((e,n)=>{e.forEach(e=>{var t,c;e.isIntersecting&&((t=(e=e.target).getAttribute("data-placeholder-image"))&&(c=e.getAttribute("data-placeholder_class_index"),cmplz_append_css(".cmplz-placeholder-"+c+" {background-image: url("+t+") !important;}"),cmplz_set_blocked_content_container_aspect_ratio(e,t,c)),n.unobserve(e))})});e.forEach(e=>{t.observe(e)})};function cmplz_set_blocked_content_container(){document.querySelectorAll(".cmplz-image").forEach(e=>{var t,c,n,o;e.classList.contains("cmplz-processed")||(e.classList.add("cmplz-processed"),t=e.getAttribute("data-service"),c=e.getAttribute("data-category"),(n=e.parentElement).classList.add("cmplz-blocked-content-container"),o=n.getAttribute("data-placeholder_class_index"),"lazy"===e.getAttribute("loading")&&(e.removeAttribute("loading"),e.setAttribute("data-deferlazy",1)),null===o&&(cmplz_placeholder_class_index++,n.classList.add("cmplz-placeholder-"+cmplz_placeholder_class_index,"cmplz-blocked-content-container"),n.setAttribute("data-placeholder_class_index",cmplz_placeholder_class_index),cmplz_insert_placeholder_text(n,c,t)))}),document.querySelectorAll(".cmplz-placeholder-element").forEach(t=>{if(!t.classList.contains("cmplz-processed")){t.classList.add("cmplz-processed");var c=t.getAttribute("data-service"),n=t.getAttribute("data-category");let e;null===(e=t.classList.contains("cmplz-iframe")?("lazy"===t.getAttribute("loading")&&(t.removeAttribute("loading"),t.setAttribute("data-deferlazy",1)),t.parentElement):t).getAttribute("data-placeholder_class_index")&&(cmplz_placeholder_class_index++,e.classList.add("cmplz-placeholder-"+cmplz_placeholder_class_index,"cmplz-blocked-content-container"),e.setAttribute("data-placeholder_class_index",cmplz_placeholder_class_index),cmplz_insert_placeholder_text(e,n,c),n=t.getAttribute("data-placeholder-image"))&&void 0!==n&&n.length&&e.setAttribute("data-placeholder-image",n)}}),cmplzLazyLoader(),cmplz_has_consent("statistics")&&cmplz_enable_category("statistics"),cmplz_has_consent("marketing")&&cmplz_enable_category("marketing")}function cmplz_insert_placeholder_text(e,n,o){if(!e.querySelector(".cmplz-blocked-content-notice")){let t=complianz.placeholdertext;n=n||"marketing";let c;if(void 0!==t){if(1===Number(complianz.clean_cookies)){let e=o?o.replace("-"," "):"";e=e.charAt(0).toUpperCase()+e.slice(1),t=t.replace("{service}
1",e),(c=cmplz_create_element("div",t)).innerHTML=cmplz_sanitize_placeholder_html(t),c.classList.add("cmplz-blocked-content-notice");var a=c.querySelector("button"),a=(a.setAttribute("data-service",o),a.setAttribute("data-category",n),a.setAttribute("aria-label",complianz.aria_label.replace("{service}",e)),complianz.page_links[complianz.region]),r=c.querySelector(".cmplz-links a");a&&a.hasOwnProperty("cookie-statement")?(r.setAttribute("href",a["cookie-statement"].url),"{title}"===r.innerText&&(r.innerText=a["cookie-statement"].title)):r&&(r.parentElement.style.display="none")}else{a=cmplz_create_element("button",""),r=complianz.categories.hasOwnProperty(n)?complianz.categories[n]:"marketing";a.innerText=t.replace("{category}",r),a.classList.add("cmplz-blocked-content-notice","cmplz-accept-category","cmplz-accept-"+n),a.setAttribute("data-service",o),a.setAttribute("data-category",n),a.setAttribute("aria-label",complianz.aria_label.replace("{category}",n)),c=a}("VIDEO"!==e.tagName?e:e.parentElement).appendChild(c)}}}function cmplz_set_blocked_content_container_aspect_ratio(t,c,n){var e;null!=t&&((e=new Image).addEventListener("load",function(){var e=this.naturalWidth||1,e=this.naturalHeight*(t.clientWidth/e),e=-1===c.indexOf("placeholder.jpg")?"height:"+e+"px;":"";cmplz_append_css(".cmplz-placeholder-"+n+" {"+e+"}")}),e.src=c)}let cmplzResizeTimer;function cmplz_enable_category(o,a){1===Number(complianz.tm_categories)&&""!==o&&cmplz_run_tm_event(o);var t={},t=(t.category=o,t.categories=cmplz_accepted_categories(),t.region=complianz.region,new CustomEvent("cmplz_before_category",{detail:t}));if(document.dispatchEvent(t),a=void 0!==a?a:"do_not_match","functional"!==(o=""===o?"do_not_match":o)){"marketing"===o&&cmplz_set_integrations_cookies();let e;e="do_not_match"!==a?'.cmplz-blocked-content-notice [data-service="'+a+'"]':1!==Number(complianz.clean_cookies)?".cmplz-blocked-content-notice.cmplz-accept-"+o:'.cmplz-blocked-content-notice [data-category="'+o+'"]',document.querySelectorAll(e).forEach(e=>{var t=e.getAttribute("data-service");e.parentNode.classList.contains("cmplz-blocked-content-notice")&&(e=e.parentNode),cmplz_is_service_denied(t)||e.parentNode.removeChild(e)}),document.querySelectorAll('[data-category="'+o+'"], [data-service="'+a+'"]').forEach(t=>{var e=t.getAttribute("data-service");if(!cmplz_is_service_denied(e)&&"functional"!==t.getAttribute("data-category")&&!t.classList.contains("cmplz-activated")){var e=t.tagName;if("LINK"===e){t.classList.add("cmplz-activated");var c=t.getAttribute("data-href");cmplz_load_css(c,o)}else if("IMG"===e){t.classList.add("cmplz-activated");c=t.getAttribute("data-src-cmplz");t.setAttribute("src",c),t.getAttribute("data-deferlazy")&&t.setAttribute("loading","lazy"),cmplz_remove_placeholder(t)}else if("IFRAME"===e){t.classList.add("cmplz-activated");let e=t.getAttribute("data-src-cmplz");c=t.getAttribute("data-cmplz-target")?t.getAttribute("data-cmplz-target"):"src";"1"===cmplz_get_url_parameter(t.getAttribute(c),"autoplay")&&(e+="&autoplay=1"),t.getAttribute("data-deferlazy")&&t.setAttribute("loading","lazy"),t.addEventListener("load",()=>{cmplz_remove_placeholder(t)}),t.setAttribute(c,e)}else t.classList.contains("cmplz-placeholder-element")&&(t.classList.add("cmplz-activated"),e=t.getAttribute("data-placeholder_class_index"),t.classList.remove("cmplz-blocked-content-container","cmplz-placeholder-"+e))}});t=document.querySelectorAll('script[data-category="'+o+'"], script[data-service="'+a+'"]');t.forEach(e=>{var t=e.getAttribute("data-waitfor"),c=e.getAttribute("data-cmplz-src");t&&(c?cmplz_waiting_scripts[t]=c:0<e.innerText.length&&(cmplz_waiting_inline_scripts[t]=e)),e.parentElement&&e.parentElement.removeChild(e)}),t.forEach(e=>{var t,c,n=e.getAttribute("type");!e.classList.contains("cmplz-activated")&&n&&"text/javascript"!==n&&(e.classList.add("cmplz-activated"),(n=e.getAttribute("data-cmplz-src"))?(e.removeAttribute("type"),cmplz_is_waiting_script(cmplz_waiting_scripts,n)||(e.getAttribute("data-post_scribe_id")?(t="#"+e.getAttribute("data-post_scribe_id"),(c=document.querySelector(t))&&(c.innerHtml(""),postscribe(t,"<script src="+n+"><\/script>"))):cmplz_run_script(n,o,a,"src",e))):0<e.innerText.length&&(cmplz_is_
1waiting_script(cmplz_waiting_inline_scripts,e.innerText)||cmplz_run_script(e.innerText,o,a,"inline",e)))}),cmplz_run_after_all_scripts(o,a)}}function cmplz_remove_placeholder(e){var t,c=e.closest(".cmplz-blocked-content-container");c&&(t=c.getAttribute("data-placeholder_class_index"),c.classList.remove("cmplz-blocked-content-container","cmplz-placeholder-"+t)),e.classList.remove("cmplz-iframe-styles","cmplz-iframe","video-wrap")}function cmplz_get_waiting_script(e,t){for(var c in e){var n;if(e.hasOwnProperty(c))if(-1!==t.indexOf(c))return n=e[c],delete e[c],n}return!1}function cmplz_array_is_empty(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function cmplz_is_waiting_script(t,c){for(var n in t)if(t.hasOwnProperty(n)){let e=t[n];if("string"!=typeof e&&(e=e.innerText),-1!==c.indexOf(e)||-1!==e.indexOf(c))return!0}return!1}function cmplz_run_after_all_scripts(e,t){var c="do_not_match"!==t&&!cmplz_in_array(t,cmplz_fired_service_events),n="do_not_match"!==e&&!cmplz_in_array(e,cmplz_fired_category_events);(n||c)&&(n&&cmplz_fired_category_events.push(e),c&&cmplz_fired_service_events.push(t),(n={}).category=e,n.service=t,n.categories=cmplz_accepted_categories(),n.services=cmplz_get_all_service_consents(),n.region=complianz.region,c=new CustomEvent("cmplz_enable_category",{detail:n}),document.dispatchEvent(c)),!cmplz_all_scripts_hook_fired&&cmplz_array_is_empty(cmplz_waiting_inline_scripts)&&cmplz_array_is_empty(cmplz_waiting_scripts)&&(n=new CustomEvent("cmplz_run_after_all_scripts",{detail:e,service:t}),document.dispatchEvent(n),cmplz_all_scripts_hook_fired=!0)}window.addEventListener("resize",function(){clearTimeout(cmplzResizeTimer),cmplzResizeTimer=setTimeout(cmplz_set_blocked_content_container,500)},!0),1===Number(complianz.block_ajax_content)&&setInterval(function(){cmplz_set_blocked_content_container()},2e3);let cmplz_fired_events=[];function cmplz_run_tm_event(e){-1===cmplz_fired_events.indexOf(e)&&(cmplz_fired_events.push(e),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"cmplz_event_"+e}),e=new CustomEvent("cmplz_tag_manager_event",{detail:e}),document.dispatchEvent(e))}function cmplz_fire_before_categories_consent(e){var t={},e=(t.categories=e,t.region=complianz.region,new CustomEvent("cmplz_before_categories_consent",{detail:t}));document.dispatchEvent(e)}function cmplz_check_cookie_policy_id(){var e=cmplz_get_cookie("policy_id");e&&parseInt(complianz.current_policy_id)!==parseInt(e)&&(cmplz_deny_all(),cmplz_set_banner_status("show"),cmplz_clear_cookies("cmplz"))}function cmplz_do_not_track(){var e="doNotTrack"in navigator&&"1"===navigator.doNotTrack,t="globalPrivacyControl"in navigator&&navigator.globalPrivacyControl;return!(!complianz.do_not_track_enabled||!t&&!e)}function cmplz_get_services_on_page(){let c=[];return document.querySelectorAll("[data-service]").forEach(e=>{var t=e.getAttribute("data-service"),e=e.getAttribute("data-category");-1===c.indexOf(t)&&c.push({category:e,service:t})}),c}function cmplzEnsureBannerCss(){var e="cmplz-banner-"+complianz.user_banner_id+"-"+complianz.consenttype+"-css",e=document.getElementById(e);if(e&&"stylesheet"===e.rel)return e.sheet&&e.sheet.disabled&&(e.sheet.disabled=!1),e;var t,e=complianz.css_file.replace("{type}",complianz.consenttype).replace("{banner_id}",complianz.user_banner_id);-1!==complianz.css_file.indexOf("cookiebanner/css/defaults/banner")&&cmplz_log("Fallback default css file used. Please re-save banner settings, or check file writing permissions in uploads directory");let c=e.split("?")[0].split("/").pop(),n=null;return document.querySelectorAll('link[rel="stylesheet"]').forEach(function(e){e.href.split("?")[0].split("/").pop()===c&&(n=e)}),n?(n.sheet&&n.sheet.disabled&&(n.sheet.disabled=!1),n):((t=document.createElement("link")).href=e,t.type="text/css",t.rel="stylesheet",document.getElementsByTagName("head")[0].appendChild(t),t)}function cmplzSyncConsentState(){var e=document.querySelectorAll(".cmplz-cookiebanner");1<e.length&&e.forEach(function(e){e.closest("[data-wp-router-region]")&&e.remove()});let t="dismissed"===cmplz_get_banner_status();document.querySelectorAll(".cmplz-cookiebanner").forEach(function(e){e.classList.toggle("cmplz-show",!t),e.classList.toggle("cmplz-dismissed",t)});e=document.querySelectorAll("#cmplz-manage-consent");Array.prototype.some.call(e,function(e){return!e.closest("[data-wp-router-region]")})&&e.forEach(function(e){e.closest("[data-wp-router-region]")&&e.remove()})}function cmplzInitNavigationHook(){if(document.querySelector("[data-wp-router-region]")){let e=function(){cmplzEnsureBannerCss(),cmplzSyncConsentState()};
1if("module"===complianz.iapi_nav)document.addEventListener("cmplz_router_navigated",e);else{let c=function(){requestAnimationFrame(function(){e(),setTimeout(e,150)})};["pushState","replaceState"].forEach(function(e){let t=history[e];history[e]=function(){var e=t.apply(this,arguments);return c(),e}}),window.addEventListener("popstate",c)}}}function cmplz_is_bot(){var e=new RegExp("(googlebot/|Googlebot-Mobile|Google-InspectionTool|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)","i"),t=navigator.userAgent;return e.test(t)}function cmplz_is_speedbot(){var e=navigator.userAgent;return new RegExp("(GTmetrix|pingdom|pingbot|Lighthouse)","i").test(e)}function cmplz_exists_service_consent(){var e,t=cmplz_get_cookie("consented_services");try{for(var c in e=JSON.parse(t))if(e.hasOwnProperty(c)&&!0===e[c])return!0}catch(e){}return!1}function cmplz_set_service_consent(e,t){var c=cmplz_get_cookie("consented_services");let n;try{n=JSON.parse(c)}catch(e){n={}}n[e]=t,cmplz_set_cookie("consented_services",JSON.stringify(n));c={},c.service=e,c.value=t,c.region=complianz.region,cmplz_all_scripts_hook_fired=!1,e=new CustomEvent("cmplz_status_change_service",{detail:c});document.dispatchEvent(e)}function cmplz_clear_all_service_consents(){cmplz_set_cookie("consented_services","")}function cmplz_get_all_service_consents(){var e=cmplz_get_cookie("consented_services");let t;try{t=JSON.parse(e)}catch(e){t={}}return t}function cmplz_get_cookie_path(){return void 0!==complianz.cookie_path&&""!==complianz.cookie_path?complianz.cookie_path:"/"}function cmplz_get_cookie_domain(){return 1===Number(complianz.set_cookies_on_root)&&3<complianz.cookie_domain.length&&!complianz.cookie_domain.includes("localhost")?complianz.cookie_domain:""}function cmplz_reload_browser_compatible(){var e;-1<navigator.userAgent.toLowerCase().indexOf("firefox")?((e=new
1URL(window.location.href)).searchParams.set("cmplz-force-reload",Date.now().toString()),window.location.href=e.toString()):window.location.reload()}window.cmplz_accept_all=function(){for(var e in cmplz_clear_all_service_consents(),cmplz_fire_before_categories_consent(cmplz_categories),cmplz_categories)cmplz_categories.hasOwnProperty(e)&&cmplz_set_consent(cmplz_categories[e],"allow");cmplz_sync_category_checkboxes()},window.cmplz_deny_all=function(){for(var e in cmplz_categories)cmplz_categories.hasOwnProperty(e)&&cmplz_set_consent(cmplz_categories[e],"deny");let t=!1;"functional"===cmplz_highest_accepted_category()&&!cmplz_exists_service_consent()||(t=!0),cmplz_clear_cookies("cmplz_service")&&(t=!0),cmplz_clear_all_service_consents(),cmplz_integrations_revoke(),cmplz_fire_categories_event(),cmplz_track_status();var c=new CustomEvent("cmplz_revoke",{detail:t});document.dispatchEvent(c),!complianz.tcf_active&&t&&cmplz_reload_browser_compatible()},window.conditionally_show_banner=function(){complianz=cmplz_merge_object(complianz,cmplz_user_data),cmplz_maybe_auto_redirect(),cmplz_set_blocked_content_container(),window.wp_consent_type=complianz.consenttype;var e,t,c,n=new CustomEvent("wp_consent_type_defined"),o=(document.dispatchEvent(n),n=new CustomEvent("cmplz_before_cookiebanner"),document.dispatchEvent(n),1===Number(complianz.forceEnableStats)&&"optin"===complianz.consenttype&&cmplz_set_consent("statistics","allow"),cmplz_categories.reverse()),a=[];for(e in o)o.hasOwnProperty(e)&&(t=cmplz_categories[e],cmplz_has_consent(t))&&a.push(t);for(c in cmplz_fire_before_categories_consent(a),a)o.hasOwnProperty(c)&&cmplz_enable_category(a[c]);if(cmplz_exists_service_consent()){cmplz_enable_category("","general");var r,l,i,s=cmplz_get_services_on_page();for(r in s)s.hasOwnProperty(r)&&(l=s[r].service,i=s[r].category,cmplz_has_service_consent(l,i))&&(document.querySelectorAll('.cmplz-accept-service[data-service="'+l+'"]').forEach(e=>{e.checked=!0}),cmplz_enable_category("",l))}cmplz_sync_category_checkboxes(),cmplz_integrations_init(),cmplz_check_cookie_policy_id(),cmplz_set_up_auto_dismiss(),cmplz_load_manage_consent_container(),n=new CustomEvent("cmplz_cookie_banner_data",{detail:complianz}),document.dispatchEvent(n),""===cmplz_get_cookie("saved_categories")&&("optin"!==complianz.consenttype&&"optout"!==complianz.consenttype?cmplz_track_status():cmplz_do_not_track()&&cmplz_track_status("do_not_track")),cmplz_set_category_as_body_class(),cmplz_fire_categories_event(),cmplz_do_not_track()?(cmplz_log("global privacy control or do not track detected: no banner."),cmplz_track_status("do_not_track")):("optin"===complianz.consenttype?(complianz.forceEnableStats&&cmplz_enable_category("statistics"),cmplz_log("opt-in"),show_cookie_banner):"optout"===complianz.consenttype?(cmplz_log("opt-out"),show_cookie_banner):(cmplz_log("other consent type, no cookie warning"),cmplz_accept_all))()},window.show_cookie_banner=function(){let t=complianz.disable_cookiebanner||cmplz_is_speedbot(),e=!1;(document.querySelector("#cmplz-manage-consent-container")||document.querySelector(".cmplz-dropdown-cookiepolicy"))&&(e=!0);var c=document.getElementById("cmplz-cookiebanner-container");c&&document.body.prepend(c);let n=complianz.page_links[complianz.region];(cmplz_banner=document.querySelector(".cmplz-cookiebanner.banner-"+complianz.user_banner_id+"."+complianz.consenttype))||(t=!0),cmplz_manage_consent_button=document.querySelector("#cmplz-manage-consent .cmplz-manage-consent.manage-consent-"+complianz.user_banner_id);function o(){var e;t||(cmplz_banner.classList.remove("cmplz-hidden"),cmplz_manage_consent_button.classList.remove("cmplz-hidden"),"show"===cmplz_get_banner_status()&&(cmplz_trap_focus(),e=cmplz_banner.querySelector(".cmplz-close"))&&e.focus())}c=cmplzEnsureBannerCss(),t||((!c||!c.sheet)&&c?(c.addEventListener("load",o),setTimeout(o,500)):o()),cmplz_banner&&!t&&(cmplz_banner.querySelectorAll(".cmplz-links a:not(.cmplz-external), .cmplz-buttons a:not(.cmplz-external)").forEach(e=>{var t,c=e;for(t in c.classList.add("cmplz-hidden"),n)n.hasOwnProperty(t)&&c.classList.contains(t)&&(c.setAttribute("href",n[t].url+c.getAttribute("data-relative_url")),"{title}"===c.innerText&&(c.innerText=cmplz_html_decode(n[t].title)),c.classList.remove("cmplz-hidden"))}),cmplz_set_banner_status(),e)&&(cmplz_banner.classList.remove("cmplz-show"),cmplz_banner.classList.add("cmplz-dismissed"),cmplz_manage_consent_button.classList.remove("cmplz-dismissed"),cmplz_manage_consent_button.classList.add("cmplz-show")),c=new CustomEvent("cmplz_cookie_warning_loaded",{detail:complianz.region});document.dispatchEvent(c)},window.cmplz_get_banner_status=function(){return cmplz_get_cookie("banner-status")},window.cmplz_set_banner_status=function(e){let t=cmplz_get_cookie("banner-status");(e=void 0!==e?e:t)!==t&&cmplz_set_cookie("banner-status",e),0===e.length&&(e="show"),t="show"===e?"dismissed":"show",cmplz_banner&&0<e.length&&(cmplz_banner.classList.remove("cmplz-"+t),cmplz_banner.classList.add("cmplz-"+e),cmplz_manage_consent_button)&&(cmplz_manage_consent_button.classList.add("cmplz-"+t),cmplz_manage_consent_button.classList.remove("cmplz-"+e)),cmplz_banner_container&&complianz.soft_cookiewall&&(cmplz_banner_container.classList.remove("cmplz-"+t),cmplz_banner_container.classList.add("cmplz-"+e,"cmplz-soft-cookiewall"));var c=new CustomEvent("cmplz_banner_status",{detail:e});document.dispatchEvent(c),cmplz_start_clean(),"show"===e?(cmplz_trap_focus(),(c=cmplz_banner.querySelector(".cmplz-close"))&&c.focus()):cmplz_release_focus_trap()},window.cmplz_has_consent=function(e){if(cmplz_is_bot())return!0;
1if("functional"===e)return!0;let t,c;return t=cmplz_do_not_track()?(c=cmplz_get_cookie(e),"allow"===c):(c=cmplz_get_cookie(e),("optout"===complianz.consenttype||"other"===complianz.consenttype)&&""===c||"allow"===c)},window.cmplz_is_service_denied=function(e){var t=cmplz_get_cookie("consented_services");let c;try{c=JSON.parse(t)}catch(e){c={}}return!!c.hasOwnProperty(e)&&!c[e]},window.cmplz_has_service_consent=function(e,t){var c=cmplz_get_cookie("consented_services");let n;try{n=JSON.parse(c)}catch(e){n={}}return n.hasOwnProperty(e)?n[e]:cmplz_has_consent(t)},window.cmplz_set_consent=function(e,t){cmplz_set_accepted_cookie_policy_id(),t="functional"===e?"allow":t;var c,n=cmplz_get_cookie(e);let o="allow"===t;document.querySelectorAll("input.cmplz-"+e).forEach(e=>{e.checked=o}),n!==t&&(cmplz_set_cookie(e,t),"allow"===t&&cmplz_enable_category(e),cmplz_wp_set_consent(e,t),"statistics"===e&&cmplz_wp_set_consent("statistics-anonymous","allow"),(c=new Object).category=e,c.value=t,c.region=complianz.region,c.categories=cmplz_accepted_categories(),cmplz_all_scripts_hook_fired=!1,c=new CustomEvent("cmplz_status_change",{detail:c}),document.dispatchEvent(c),"marketing"===e)&&"deny"===t&&"allow"===n&&(cmplz_integrations_revoke(),setTimeout(function(){cmplz_reload_browser_compatible()},500))};let cmplz_user_data=[];if("undefined"!=typeof Storage&&sessionStorage.cmplz_user_data&&(cmplz_user_data=JSON.parse(sessionStorage.cmplz_user_data)),1!==Number(complianz.geoip)||0!==cmplz_user_data.length&&cmplz_user_data.version===complianz.version&&cmplz_user_data.banner_version===complianz.banner_version)conditionally_show_banner();else{let e=new XMLHttpRequest,t=cmplz_get_url_parameter(window.location.href,"cmplz_user_region");t=t?"&cmplz_user_region="+t:"",e.open("GET",complianz.url+"banner?"+complianz.locale+t,!0),e.setRequestHeader("Content-type","application/json"),e.send(),e.onload=function(){cmplz_user_data=JSON.parse(e.response),sessionStorage.cmplz_user_data=JSON.stringify(cmplz_user_data),conditionally_show_banner()}}if(cmplzInitNavigationHook(),1===Number(complianz.store_consent)){let e=cmplz_get_cookie("id"),t="",c="";"undefined"!=typeof Storage&&sessionStorage.cmplz_id&&(t=JSON.parse(sessionStorage.cmplz_id)),0===e.length&&0<t.length&&(c=t,cmplz_set_cookie("id",c)),0<e.length&&0===t.length&&(c=e),"undefined"!=typeof Storage&&(sessionStorage.cmplz_id=JSON.stringify(c))}function cmplz_track_status_end(){cmplz_consent_stored_once||cmplz_track_status()}function cmplz_set_up_auto_dismiss(){if("dismissed"!==cmplz_get_banner_status()){if("optout"===complianz.consenttype&&1===Number(complianz.dismiss_on_scroll)){let e=function(){window.pageYOffset>Math.floor(400)&&(window.removeEventListener("scroll",e),this.onWindowScroll=null,"dismissed"!==cmplz_get_banner_status())&&(cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status())};window.addEventListener("scroll",e)}var e=parseInt(complianz.dismiss_timeout);"optout"===complianz.consenttype&&0<e&&window.setTimeout(function(){"dismissed"!==cmplz_get_banner_status()&&(cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status())},Math.floor(e))}}function cmplz_fire_categories_event(){var e=new Object,e=(e.category=cmplz_highest_accepted_category(),e.categories=cmplz_accepted_categories(),e.region=complianz.region,new CustomEvent("cmplz_fire_categories",{detail:e}));document.dispatchEvent(e)}function cmplz_track_status(e){let t=[];e=void 0!==e&&e;var c=new CustomEvent("cmplz_track_status",{detail:e});document.dispatchEvent(c),t=e?[e]:cmplz_accepted_categories(),cmplz_set_category_as_body_class();let n,o;try{n=JSON.parse(cmplz_get_cookie("saved_categories"))}catch(e){n={}}try{o=JSON.parse(cmplz_get_cookie("saved_services"))}catch(e){o={}}var c=cmplz_get_all_service_consents();cmplz_equals(n,t)&&cmplz_equals(o,c)||1!==Number(complianz.store_consent)||cmplz_is_bot()||cmplz_is_speedbot()||(cmplz_set_cookie("saved_categories",JSON.stringify(t)),cmplz_set_cookie("saved_services",JSON.stringify(c)),cmplz_consent_stored_once=!0,e={consented_categories:t,consented_services:c,consenttype:window.wp_consent_type},(c=new XMLHttpRequest).open("POST",complianz.url+"track",!0),c.setRequestHeader("Content-type","application/json"),c.send(JSON.stringify(e)))}function cmplz_accepted_categories(){let e=cmplz_categories,t=[];for(var c in e)e.hasOwnProperty(c)&&(c=e[c],cmplz_has_consent(c))&&t.pu
1sh(c);return e=e.filter(function(e){return cmplz_in_array(e,t)})}function cmplz_sync_category_checkboxes(){for(var e in cmplz_categories)cmplz_categories.hasOwnProperty(e)&&(e=cmplz_categories[e],cmplz_has_consent(e)||"functional"===e?document.querySelectorAll("input.cmplz-"+e).forEach(e=>{e.checked=!0}):document.querySelectorAll("input.cmplz-"+e).forEach(e=>{e.checked=!1})),document.querySelectorAll(".cmplz-accept-service").forEach(e=>{var t=e.getAttribute("data-service"),c=e.getAttribute("data-category");cmplz_has_service_consent(t,c)?e.checked=!0:cmplz_is_service_denied(t)?e.checked=!1:e.checked=!!cmplz_has_consent(c)})}function cmplz_merge_object(e,t){var c,n,o={};for(c in t)t.hasOwnProperty(c)&&(o[c]=t[c]);for(n in e)t.hasOwnProperty(n)&&void 0!==t[n]||e.hasOwnProperty(n)&&(o[n]=e[n]);return o}function cmplz_clear_cookies(t){if("undefined"==typeof document)return!1;let a=!1,r="https:"===window.location.protocol?";secure":"",l="expires="+(new Date).toGMTString(),i=location.pathname.replace(/^\/|\/$/g,"").split("/");return document.cookie.split("; ").forEach(function(e){let n=e.split(";")[0].split("=")[0];if(-1!==n.indexOf(t)){a=!0;let c=window.location.hostname.split(".");var o=1<c.length;for(i.forEach(function(e){e="/"+e;document.cookie=encodeURIComponent(n)+"=;SameSite=Lax"+r+";"+l+";domain=."+c.join(".")+";path="+e,document.cookie=encodeURIComponent(n)+"=;SameSite=Lax"+r+";"+l+";domain=."+c.join(".")+";path="+e+"/"});0<c.length;){let t="."+c.join(".");
1c.shift(),o&&1===c.length&&c.shift(),i.forEach(function(e){e="/"+e;document.cookie=encodeURIComponent(n)+"=;SameSite=Lax"+r+";"+l+";domain="+t+";path="+e,document.cookie=encodeURIComponent(n)+"=;SameSite=Lax"+r+";"+l+";domain="+t+";path="+e+"/"})}}}),cmplz_set_accepted_cookie_policy_id(),a}function cmplz_set_accepted_cookie_policy_id(){cmplz_set_cookie("policy_id",complianz.current_policy_id)}function cmplz_integrations_init(){var e,t=complianz.set_cookies;for(e in t)t.hasOwnProperty(e)&&"1"===t[e][1]&&cmplz_set_cookie(e,t[e][1],!1)}function cmplz_integrations_revoke(){var e,t,c=complianz.set_cookies;for(e in c)c.hasOwnProperty(e)&&(t=c[e][1],cmplz_set_cookie(e,t,!1),0===Number(t))&&cmplz_clear_cookies(e)}function cmplz_set_integrations_cookies(){var e,t=complianz.set_cookies;for(e in t)t.hasOwnProperty(e)&&cmplz_set_cookie(e,t[e][0],!1)}function cmplz_get_url_parameter(e,t){if(e&&void 0!==e&&-1!==e.indexOf("?")){e=e.split("?")[1];if(e){var c=e.split("&");for(let e=0;e<c.length;e++){var n=c[e].split("=");if(n[0]===t)return void 0===n[1]||decodeURIComponent(n[1])}}}return!1}function cmplz_maybe_auto_redirect(){var e=cmplz_get_url_parameter(window.location.href,"cmplz_region_redirect"),t=cmplz_get_url_parameter(window.location.href,"cmplz-region");e&&!t&&(e=window.location.href.split("#")[0]+"&cmplz-region="+complianz.region,t=window.location.hash,window.location.href=e+t)}function cmplz_wp_set_consent(e,t){"function"==typeof wp_set_consent&&wp_set_consent(e,t)}function cmplz_start_clean(){if(1===Number(complianz.clean_cookies))if((cmplz_cookie_data="undefined"!=typeof Storage?JSON.parse(sessionStorage.getItem("cmplz_cookie_data")):cmplz_cookie_data)&&0!==cmplz_cookie_data.length)cmplz_setup_clean_interval();else{let e=new XMLHttpRequest;e.open("GET",complianz.url+"cookie_data",!0),e.setRequestHeader("Content-type","application/json"),e.send(),e.onload=function(){cmplz_cookie_data=JSON.parse(e.response),sessionStorage.setItem("cmplz_cookie_data",JSON.stringify(cmplz_cookie_data)),cmplz_setup_clean_interval()}}}function cmplz_do_cleanup(){var e;for(e of["preferences","statistics","marketing"])if(!cmplz_has_consent(e)&&cmplz_cookie_data.hasOwnProperty(e)){var t,c,n=cmplz_cookie_data[e];for(t in n)if(!cmplz_has_service_consent(t,e))for(c of n[t])cmplz_clear_cookies(c),cmplz_clear_storage(c)}}function cmplz_setup_clean_interval(){!cmplz_cookie_data||cmplzCleanCookieInterval||(cmplz_do_cleanup(),cmplzCleanCookieInterval=setInterval(cmplz_do_cleanup,1e3))}function cmplz_clear_storage(e){"undefined"!=typeof Storage&&(localStorage.getItem(e)&&localStorage.removeItem(e),sessionStorage.getItem(e))&&sessionStorage.removeItem(e)}function cmplz_load_manage_consent_container(){let c=document.querySelector(".cmplz-manage-consent-container");if(c){let t=new XMLHttpRequest;t.open("GET",complianz.url+"manage_consent_html?"+complianz.locale,!0),t.setRequestHeader("Content-type","application/json"),t.send(),t.onload=function(){var e=JSON.parse(t.response);c.insertAdjacentHTML("beforeend",e),cmplz_sync_category_checkboxes();document.querySelector("#cmplz-manage-consent-container-nojavascript").style.display="none",c.style.display="block";e=new CustomEvent("cmplz_manage_consent_container_loaded");document.dispatchEvent(e)}}}function cmplz_equals(c,n){if("object"!=typeof c||null===c||Array.isArray(c)||"object"!=typeof n||null===n||Array.isArray(n)){if(Array.isArray(c)||(c=Object.keys(c),n=Object.keys(n)),!c||!n)return!1;if(c.length!==n.length)return!1;for(let e=0,t=c.length;e<t;e++)if(c[e]instanceof Array&&n[e]instanceof Array){if(!cmplz_equals(c[e],n[e]))return!1}else if(c[e]!==n[e])return!1}else{var e;for(e of[...new Set([...Object.keys(c),...Object.keys(n)])])if(c[e]!==n[e])return!1}return!0}function cmplzCopyAttributes(e,t){let c=["type","data-service","data-category","async"];Array.from(e.attributes).forEach(e=>{"data-script-type"===e.nodeName&&"module"===e.nodeValue?(t.setAttribute("type","module"),t.removeAttribute("data-script-type")):c.includes(e.nodeName)||t.setAttribute(e.nodeName,e.nodeValue)})}document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&cmplz_track_status_end()}),window.addEventListener("pagehide",cmplz_track_status_end,!1),window.addEventListener("beforeunload",cmplz_track_status_end,!1),document.addEventListener("cmplz_consent_action",function(e){cmplz_set_consent(e.detail.category,"allow"),cmplz_fire_categories_event(),cmplz_track_status()}),cmplz_add_event("click",".cmplz-accept",function(e){e.preventDefault(),setTimeout(()=>{cmplz_accept_all(),cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status()},0)}),cmplz_add_event("click",".cmplz-accept-category, .cmplz-accept-marketing",function(e){e.preventDefault();var e=e.target,t=e.getAttribute("data-service"),e=e.getAttribute("data-category")||"marketing";1===Number(complianz.clean_cookies)&&void 0!==t&&t?(cmplz_set_service_consent(t,!0),cmplz_enable_category("","general"),cmplz_enable_category("",t)):cmplz_set_consent(e,"allow"),cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status()}),cmplz_add_event("click",".cmplz-accept-service",function(e){var e=e.target;"INPUT"!==e.tagName&&(void 0!==(e=e.getAttribute("data-service"))&&(cmplz_set_service_consent(e,!0),cmplz_enable_category("","general"),cmplz_enable_category("",e)),cmplz_fire_categories_event(),cmplz_track_status())}),cmplz_add_event("change",".cmplz-accept-service",function(e){var t=e.target,c=t.tagName,n=t.getAttribute("data-service");void 0!==n&&("INPUT"===c?(cmplz_set_banner_status("dismissed"),t.checked?(cmplz_set_service_consent(n,!0),cmplz_enable_category("",n)):(cmplz_set_service_consent(n,!1),setTimeout(function(){cmplz_reload_browser_compatible()},500))):(e.preventDefault(),cmplz_set_service_consent(n,!0),cmplz_enable_category("","general"),cmplz_enable_category("",n),setTimeout(function(){cmplz_reload_browser_compatible()},500))),cmplz_fire_categories_event(),cmplz_track_status()}),cmplz_add_event("click",".cmplz-save-preferences",function(e){var t,c,n,o,a,e=e.target,r=(cmplz_banner=e.closest(".cmplz-cookiebanner"),[]);for(t in cmplz_categories)cmplz_categories.hasOwnProperty(t)&&(c=cmplz_categories[t],n=cmplz_banner.querySelector("input.cmplz-"+c))&&n.checked&&r.push(c);for(o in cmplz_fire_before_categories_consent(r),cmplz_categories)cmplz_categories.hasOwnProperty(o)&&(a=cmplz_categories[o],r.includes(a)?cmplz_set_consent(a,"allow"):cmplz_set_consent(a,"deny"));cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status()}),cmplz_add_event("click",".cmplz-close",function(){cmplz_set_banner_status("dismissed")}),cmplz_add_event("click",".cmplz-view-preferences",function(e){var e=e.target;(cmplz_banner=e.closest(".cmplz-cookiebanner")).querySelector(".cmplz-categories").classList.contains("cmplz-fade-in")?(cmplz_banner.classList.remove("cmplz-categories-v
1isible"),cmplz_banner.querySelector(".cmplz-categories").classList.remove("cmplz-fade-in"),cmplz_banner.querySelector(".cmplz-view-preferences").style.display="block",cmplz_banner.querySelector(".cmplz-save-preferences").style.display="none"):(cmplz_banner.classList.add("cmplz-categories-visible"),cmplz_banner.querySelector(".cmplz-categories").classList.add("cmplz-fade-in"),cmplz_banner.querySelector(".cmplz-view-preferences").style.display="none",cmplz_banner.querySelector(".cmplz-save-preferences").style.display="block",(e=cmplz_banner.querySelector(".cmplz-categories .cmplz-category"))&&(e=e.querySelector(".cmplz-category-toggle"))&&e.focus())}),cmplz_add_event("click",".cmplz-category-toggle",function(e){var t,e=e.target.closest(".cmplz-category-toggle");e&&(t="true"===e.getAttribute("aria-expanded"),e.setAttribute("aria-expanded",String(!t)),e=e.closest(".cmplz-category"))&&(e=e.querySelector(".cmplz-description"))&&(e.hidden=t)}),cmplz_add_event("change",".cmplz-manage-consent-container .cmplz-category",function(){for(var e in cmplz_categories){var t;cmplz_categories.hasOwnProperty(e)&&(e=cmplz_categories[e],t=document.querySelector(".cmplz-manage-consent-container input.cmplz-"+e))&&(t.checked?cmplz_set_consent(e,"allow"):cmplz_set_consent(e,"deny"),cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status())}}),cmplz_add_event("click",".cmplz-deny",function(e){e.preventDefault(),cmplz_set_banner_status("dismissed"),cmplz_deny_all()}),cmplz_add_event("click","button.cmplz-manage-settings",function(e){e.preventDefault();var e=document.querySelector(".cmplz-cookiebanner .cmplz-categories"),t=document.querySelector(".cmplz-save-settings"),c=document.querySelector("button.cmplz-manage-settings");cmplz_is_hidden(e)?(t.style.display="block",c.style.display="none",e.style.display="block"):(t.style.display="none",c.style.display="block",e.style.display="none")}),cmplz_add_event("click","button.cmplz-manage-consent",function(e){e.preventDefault(),cmplz_banner_trigger_source="manage-consent",cmplz_set_banner_status("show")}),cmplz_add_event("keypress",".cmplz-banner-slider label",function(e){32===(e.keyCode||e.which)&&e.target.click()}),cmplz_add_event("keypress",".cmplz-cookiebanner .cmplz-header .cmplz-close",function(e){13===(e.keyCode||e.which)&&e.target.click()});let cmplz_has_wp_video=document.querySelector(".cmplz-wp-video-shortcode"),cmplz_times_checked=0;void 0!==window.jQuery&&jQuery(document).ready(function(i){if(cmplz_has_wp_video){document.addEventListener("cmplz_enable_category",function(){t()});let e=setInterval(function(){cmplz_times_checked+=1,document.querySelector(".cmplz-wp-video-shortcode")&&cmplz_times_checked<100?t():clearInterval(e)},500)}function t(){if(document.querySelector(".cmplz-wp-video-shortcode")){var e,t,n,o=cmplz_accepted_categories(),a=cmplz_get_all_service_consents(),r=[];for(e in o)if(o.hasOwnProperty(e)){var l=o[e];if("functional"===l)break;r.push('.cmplz-wp-video-shortcode[data-category="'+l+'"]')}for(t in a)a.hasOwnProperty(t)&&r.push('.cmplz-wp-video-shortcode[data-service="'+t+'"]');n=r.join(",");let c=!1;0<n.length&&document.querySelectorAll(n).forEach(e=>{c=!0,e.setAttribute("controls","controls"),e.classList.add("wp-video-shortcode","cmplz-processed"),e.classList.remove("cmplz-wp-video-shortcode"),e.closest(".cmplz-wp-video").classList.remove("cmplz-wp-video");var t=e.closest(".wp-video").querySelector(".cmplz-blocked-content-notice");t&&t.parentElement.removeChild(t),e.classList.remove("cmplz-blocked-content-container")}),c&&(window.wp.mediaelement?window.wp.mediaelement.initialize():(n={videoWidth:"100%",videoHeight:"100%",enableAutosize:!0},i(".wp-video-shortcode").mediaelementplayer(n)))}}function c(e){e=i(e);"function"==typeof e.parent().fitVids&&e.parent().fitVids()}document.querySelectorAll(".cmplz-video.cmplz-activated").forEach(e=>{c(e)}),document.addEventListener("cmplz_enable_category",function(){document.querySelectorAll(".cmplz-video.cmplz-activated").forEach(e=>{c(e)})})}); 2;/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ !(function (a) { 3 "function" == typeof define && define.amd 4 ? define(["jquery"], a) 5 : a("object" == typeof exports ? require("jquery") : jQuery) 6})(function (a) { 7 var b = (function () { 8 if (a && a.fn && a.fn.mselect2 && a.fn.mselect2.amd) var b = a.fn.mselect2.amd 9 var b 10 return ( 11 (function () { 12 if (!b || !b.requirejs) { 13 b ? (c = b) : (b = {}) 14 var a, c, d 15 !(function (b) { 16 function e(a, b) { 17 return u.call(a, b) 18 } 19 function f(a, b) { 20 var c, 21 d, 22 e, 23 f, 24 g, 25 h, 26 i, 27 j, 28 k, 29 l, 30 m, 31 n = b && b.split("/"), 32 o = s.map, 33 p = (o && o["*"]) || {} 34 if (a && "." === a.charAt(0)) 35 if (b) { 36 for ( 37 a = a.split("/"), 38 g = a.length - 1, 39 s.nodeIdCompat && w.test(a[g]) && (a[g] = a[g].replace(w, "")), 40 a = n.slice(0, n.length - 1).concat(a), 41 k = 0; 42 k < a.length; 43 k += 1 44 ) 45 if (((m = a[k]), "." === m)) a.splice(k, 1), (k -= 1) 46 else if (".." === m) { 47 if (1 === k && (".." === a[2] || ".." === a[0])) break 48 k > 0 && (a.splice(k - 1, 2), (k -= 2)) 49 } 50 a = a.join("/") 51 } else 0 === a.indexOf("./") && (a = a.substring(2)) 52 if ((n || p) && o) { 53 for (c = a.split("/"), k = c.length; k > 0; k -= 1) { 54 if (((d = c.slice(0, k).join("/")), n)) 55 for (l = n.length; l > 0; l -= 1) 56 if (((e = o[n.slice(0, l).join("/")]), e && (e = e[d]))) { 57 ;(f = e), (h = k) 58 break 59 } 60 if (f) break 61 !i && p && p[d] && ((i = p[d]), (j = k)) 62 }
63 !f && i && ((f = i), (h = j)), f && (c.splice(0, h, f), (a = c.join("/"))) 64 } 65 return a 66 } 67 function g(a, c) { 68 return function () { 69 var d = v.call(arguments, 0) 70 return ( 71 "string" != typeof d[0] && 1 === d.length && d.push(null), 72 n.apply(b, d.concat([a, c])) 73 ) 74 } 75 } 76 function h(a) { 77 return function (b) { 78 return f(b, a) 79 } 80 } 81 function i(a) { 82 return function (b) { 83 q[a] = b 84 } 85 } 86 function j(a) { 87 if (e(r, a)) { 88 var c = r[a] 89 delete r[a], (t[a] = !0), m.apply(b, c) 90 } 91 if (!e(q, a) && !e(t, a)) throw new Error("No " + a) 92 return q[a] 93 } 94 function k(a) { 95 var b, 96 c = a ? a.indexOf("!") : -1 97 return ( 98 c > -1 && ((b = a.substring(0, c)), (a = a.substring(c + 1, a.length))), [b, a] 99 ) 100 } 101 function l(a) { 102 return function () { 103 return (s && s.config && s.config[a]) || {} 104 } 105 } 106 var m, 107 n, 108 o, 109 p, 110 q = {}, 111 r = {}, 112 s = {}, 113 t = {}, 114 u = Object.prototype.hasOwnProperty, 115 v = [].slice, 116 w = /\.js$/ 117 ;(o = function (a, b) { 118 var c, 119 d = k(a), 120 e = d[0] 121 return ( 122 (a = d[1]), 123 e && ((e = f(e, b)), (c = j(e))), 124 e 125 ? (a = c && c.normalize ? c.normalize(a, h(b)) : f(a, b)) 126 : ((a = f(a, b)), (d = k(a)), (e = d[0]), (a = d[1]), e && (c = j(e))), 127 { f: e ? e + "!" + a : a, n: a, pr: e, p: c } 128 ) 129 }), 130 (p = { 131 require: function (a) { 132 return g(a) 133 }, 134 exports: function (a) { 135 var b = q[a] 136 return "undefined" != typeof b ? b : (q[a] = {}) 137 }, 138 module: function (a) { 139 return { id: a, uri: "", exports: q[a], config: l(a) } 140 }, 141 }), 142 (m = function (a, c, d, f) { 143 var h, 144 k, 145 l, 146 m, 147 n, 148 s, 149 u = [], 150 v = typeof d 151 if (((f = f || a), "undefined" === v || "function" === v)) { 152 for ( 153 c = !c.length && d.length ? ["require", "exports", "module"] : c, n = 0; 154 n < c.length; 155 n += 1 156 ) 157 if (((m = o(c[n], f)), (k = m.f), "require" === k)) u[n] = p.require(a) 158 else if ("exports" === k) (u[n] = p.exports(a)), (s = !0) 159 else if ("module" === k) h = u[n] = p.module(a) 160 else if (e(q, k) || e(r, k) || e(t, k)) u[n] = j(k) 161 else { 162 if (!m.p) throw new Error(a + " missing " + k) 163 m.p.load(m.n, g(f, !0), i(k), {}), (u[n] = q[k]) 164 } 165 ;(l = d ? d.apply(q[a], u) : void 0), 166 a && 167 (h && h.exports !== b && h.exports !== q[a]
168 ? (q[a] = h.exports) 169 : (l === b && s) || (q[a] = l)) 170 } else a && (q[a] = d) 171 }), 172 (a = 173 c = 174 n = 175 function (a, c, d, e, f) { 176 if ("string" == typeof a) return p[a] ? p[a](c) : j(o(a, c).f) 177 if (!a.splice) { 178 if (((s = a), s.deps && n(s.deps, s.callback), !c)) return 179 c.splice ? ((a = c), (c = d), (d = null)) : (a = b) 180 } 181 return ( 182 (c = c || function () {}), 183 "function" == typeof d && ((d = e), (e = f)), 184 e 185 ? m(b, a, c, d) 186 : setTimeout(function () { 187 m(b, a, c, d) 188 }, 4), 189 n 190 ) 191 }), 192 (n.config = function (a) { 193 return n(a) 194 }), 195 (a._defined = q), 196 (d = function (a, b, c) { 197 if ("string" != typeof a) 198 throw new Error("See almond README: incorrect module build, no module name") 199 b.splice || ((c = b), (b = [])), e(q, a) || e(r, a) || (r[a] = [a, b, c]) 200 }), 201 (d.amd = { jQuery: !0 }) 202 })(), 203 (b.requirejs = a), 204 (b.require = c), 205 (b.define = d) 206 } 207 })(), 208 b.define("almond", function () {}), 209 b.define("jquery", [], function () { 210 var b = a || $ 211 return ( 212 null == b && 213 console && 214 console.error && 215 console.error( 216 "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.", 217 ), 218 b 219 ) 220 }), 221 b.define("select2/utils", ["jquery"], function (a) { 222 function b(a) { 223 var b = a.prototype, 224 c = [] 225 for (var d in b) { 226 var e = b[d] 227 "function" == typeof e && "constructor" !== d && c.push(d) 228 } 229 return c 230 } 231 var c = {} 232 ;(c.Extend = function (a, b) { 233 function c() { 234 this.constructor = a 235 } 236 var d = {}.hasOwnProperty 237 for (var e in b) d.call(b, e) && (a[e] = b[e]) 238 return ( 239 (c.prototype = b.prototype), (a.prototype = new c()), (a.__super__ = b.prototype), a 240 ) 241 }), 242 (c.Decorate = function (a, c) { 243 function d() { 244 var b = Array.prototype.unshift, 245 d = c.prototype.constructor.length, 246 e = a.prototype.constructor 247 d > 0 && 248 (b.call(arguments, a.prototype.constructor), (e = c.prototype.constructor)), 249 e.apply(this, arguments) 250 } 251 function e() { 252 this.constructor = d 253 } 254 var f = b(c), 255 g = b(a) 256 ;(c.displayName = a.displayName), (d.prototype = new e()) 257 for (var h = 0; h < g.length; h++) { 258 var i = g[h] 259 d.prototype[i] = a.prototype[i] 260 } 261 for ( 262 var j = function (a) { 263 var b = function () {} 264 ;(a in d.prototype) && (b = d.prototype[a]) 265 var e = c.prototype[a] 266 return function () { 267 var a = Array.prototype.unshift 268 return a.call(arguments, b), e.apply(this, arguments) 269 } 270 }, 271 k = 0; 272 k < f.length; 273 k++ 274 ) { 275 var l = f[k] 276 d.prototype[l] = j(l) 277 } 278 return d 279 }) 280 var d = function () { 281 this.listeners = {} 282 } 283 return ( 284 (d.prototype.on = function (a, b) { 285 ;(this.listeners = this.listeners || {}), 286 a in this.listeners ? this.listeners[a].push(b) : (this.listeners[a] = [b]) 287 }), 288 (d.prototype.trigger = function (a) { 289 var b = Array.prototype.slice, 290 c = b.call(arguments, 1) 291 ;(this.listeners = this.listeners || {}), 292 null == c && (c = []), 293 0 === c.length && c.push({}), 294 (c[0]._type = a), 295 a in this.listeners && this.invoke(this.listeners[a], b.call(arguments, 1)), 296 "*" in this.listeners && this.invoke(this.listeners["*"], arguments) 297 }), 298 (d.prototype.invoke = function (a, b) { 299 for (var c = 0, d = a.length; d > c; c++) a[c].apply(this, b) 300 }), 301 (c.Observable = d), 302 (c.generateChars = function (a) { 303 for (var b = "", c = 0; a > c; c++) { 304 var d = Math.floor(36 * Math.random()) 305 b += d.toString(36) 306 } 307 return b 308 }), 309 (c.bind = function (a, b) { 310 return function () { 311 a.apply(b, arguments) 312 } 313 }), 314 (c._convertData = function (a) { 315 for (var b in a) { 316 var c = b.split("-"), 317 d = a 318 if (1 !== c.length) { 319 for (var e = 0; e < c.length; e++) { 320 var f = c[e] 321 ;(f = f.substring(0, 1).toLowerCase() + f.substring(1)), 322 f in d || (d[f] = {}), 323 e == c.length - 1 && (d[f] = a[b]), 324 (d = d[f]) 325 } 326 delete a[b] 327 } 328 } 329 return a 330 }), 331 (c.hasScroll = function (b, c) { 332 var d = a(c), 333 e = c.style.overflowX, 334 f = c.style.overflowY 335 return e !== f || ("hidden" !== f && "visible" !== f) 336 ? "scroll" === e || "scroll" === f 337 ? !0 338 : d.innerHeight() < c.scrollHeight || d.innerWidth() < c.scrollWidth 339 : !1 340 }), 341 (c.escapeMarkup = function (a) { 342 var b = { 343 "\\": "\", 344 "&": "&", 345 "<": "<", 346 ">": ">", 347 '"': """, 348 "'": "'", 349 "/": "/", 350 } 351 return "string" != typeof a 352 ? a 353 : String(a).replace(/[&<>"'\/\\]/g, function (a) { 354 return b[a] 355 }) 356 }), 357 (c.appendMany = function (b, c) { 358 if ("1.7" === a.fn.jquery.substr(0, 3)) { 359 var d = a() 360 a.map(c, function (a) { 361 d = d.add(a) 362 }), 363 (c = d) 364 } 365 b.append(c) 366 }), 367 c 368 ) 369 }), 370 b.define("select2/results", ["jquery", "./utils"], function (a, b) { 371 function c(a, b, d) { 372 ;(this.$element = a), 373 (this.data = d), 374 (this.options = b), 375 c.__super__.constructor.call(this) 376 } 377 return ( 378 b.Extend(c, b.Observable), 379 (c.prototype.render = function () { 380 var b = a('<ul class="select2-results__options" role="tree"></ul>') 381 return ( 382 this.options.get("multiple") && b.attr("aria-multiselectable", "true"), 383 (this.$results = b), 384 b 385 ) 386 }), 387 (c.prototype.clear = function () { 388 this.$results.empty() 389 }), 390 (c.prototype.displayMessage = function (b) { 391 var c = this.options.get("escapeMarkup") 392 this.clear(), this.hideLoading() 393 var d = a( 394 '<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>', 395 ), 396 e = this.options.get("translations").get(b.message) 397 d.append(c(e(b.args))), 398 (d[0].className += " select2-results__message"), 399 this.$results.append(d) 400 }), 401 (c.prototype.hideMessages = function () { 402 this.$results.find(".select2-results__message").remove() 403 }), 404 (c.prototype.append = function (a) { 405 this.hideLoading() 406 var b = [] 407 if (null == a.results || 0 === a.results.length) 408 return void ( 409 0 === this.$results.children().length && 410 this.trigger("results:message", { message: "noResults" }) 411 ) 412 a.results = this.sort(a.results) 413 for (var c = 0; c < a.results.length; c++) { 414 var d = a.results[c], 415 e = this.option(d) 416 b.push(e) 417 } 418 this.$results.append(b) 419 }), 420 (c.prototype.position = function (a, b) { 421 var c = b.find(".select2-results") 422 c.append(a) 423 }), 424 (c.prototype.sort = function (a) { 425 var b = this.options.get("sorter") 426 return b(a) 427 }), 428 (c.prototype.highlightFirstItem = function () { 429 var a = this.$results.find(".select2-results__option[aria-selected]"), 430 b = a.filter("[aria-selected=true]") 431 b.length > 0 ? b.first().trigger("mouseenter") : a.first().trigger("mouseenter"), 432 this.ensureHighlightVisible() 433 }), 434 (c.prototype.setClasses = function () { 435 var b = this 436 this.data.current(function (c) { 437 var d = a.map(c, function (a) { 438 return a.id.toString() 439 }), 440 e = b.$results.find(".select2-results__option[aria-selected]") 441 e.each(function () { 442 var b = a(this), 443 c = a.data(this, "data"), 444 e = "" + c.id 445 ;(null != c.element && c.element.selected) || 446 (null == c.element && a.inArray(e, d) > -1) 447 ? b.attr("aria-selected", "true") 448 : b.attr("aria-selected", "false") 449 }) 450 }) 451 }), 452 (c.prototype.showLoading = function (a) { 453 this.hideLoading() 454 var b = this.options.get("translations").get("searching"), 455 c = { disabled: !0, loading: !0, text: b(a) }, 456 d = this.option(c) 457 ;(d.className += " loading-results"), this.$results.prepend(d) 458 }), 459 (c.prototype.hideLoading = function () { 460 this.$results.find(".loading-results").remove() 461 }), 462 (c.prototype.option = function (b) { 463 var c = document.createElement("li") 464 c.className = "select2-results__option" 465 var d = { role: "treeitem", "aria-selected": "false" } 466 b.disabled && (delete d["aria-selected"], (d["aria-disabled"] = "true")), 467 null == b.id && delete d["aria-selected"], 468 null != b._resultId && (c.id = b._resultId), 469 b.title && (c.title = b.title), 470 b.children && 471 ((d.role = "group"), (d["aria-label"] = b.text), delete d["aria-selected"]) 472 for (var e in d) { 473 var f = d[e] 474 c.setAttribute(e, f) 475 } 476 if (b.children) { 477 var g = a(c), 478 h = document.createElement("strong") 479 h.className = "select2-results__group" 480 a(h) 481 this.template(b, h) 482 for (var i = [], j = 0; j < b.children.length; j++) { 483 var k = b.children[j], 484 l = this.option(k) 485 i.push(l) 486 } 487 var m = a("<ul></ul>", { 488 class: "select2-results__options select2-results__options--nested", 489 }) 490 m.append(i), g.append(h), g.append(m) 491 } else this.template(b, c) 492 return a.data(c, "data", b), c 493 }), 494 (c.prototype.bind = function (b, c) { 495 var d = this, 496 e = b.id + "-results" 497 this.$results.attr("id", e), 498 b.on("results:all", function (a) { 499 d.clear(), 500 d.append(a.data), 501 b.isOpen() && (d.setClasses(), d.highlightFirstItem()) 502 }), 503 b.on("results:append", function (a) { 504 d.append(a.data), b.isOpen() && d.setClasses() 505 }), 506 b.on("query", function (a) { 507 d.hideMessages(), d.showLoading(a) 508 }), 509 b.on("select", function () { 510 b.isOpen() && (d.setClasses(), d.highlightFirstItem()) 511 }), 512 b.on("unselect", function () { 513 b.isOpen() && (d.setClasses(), d.highlightFirstItem()) 514 }), 515 b.on("open", function () { 516 d.$results.attr("aria-expanded", "true"), 517 d.$results.attr("aria-hidden", "false"), 518 d.setClasses(), 519 d.ensureHighlightVisible() 520 }), 521 b.on("close", function () { 522 d.$results.attr("aria-expanded", "false"), 523 d.$results.attr("aria-hidden", "true"), 524 d.$results.removeAttr("aria-activedescendant") 525 }), 526 b.on("results:toggle", function () { 527 var a = d.getHighlightedResults() 528 0 !== a.length && a.trigger("mouseup") 529 }), 530 b.on("results:select", function () { 531 var a = d.getHighlightedResults() 532 if (0 !== a.length) { 533 var b = a.data("data") 534 "true" == a.attr("aria-selected") 535 ? d.trigger("close", {}) 536 : d.trigger("select", { data: b }) 537 } 538 }), 539 b.on("results:previous", function () { 540 var a = d.getHighlightedResults(), 541 b = d.$results.find("[aria-selected]"), 542 c = b.index(a) 543 if (0 !== c) { 544 var e = c - 1 545 0 === a.length && (e = 0) 546 var f = b.eq(e) 547 f.trigger("mouseenter") 548 var g = d.$results.offset().top, 549 h = f.offset().top, 550 i = d.$results.scrollTop() + (h - g) 551 0 === e ? d.$results.scrollTop(0) : 0 > h - g && d.$results.scrollTop(i) 552 } 553 }), 554 b.on("results:next", function () { 555 var a = d.getHighlightedResults(), 556 b = d.$results.find("[aria-selected]"), 557 c = b.index(a), 558 e = c + 1 559 if (!(e >= b.length)) { 560 var f = b.eq(e) 561 f.trigger("mouseenter") 562 var g = d.$results.offset().top + d.$results.outerHeight(!1), 563 h = f.offset().top + f.outerHeight(!1), 564 i = d.$results.scrollTop() + h - g 565 0 === e ? d.$results.scrollTop(0) : h > g && d.$results.scrollTop(i) 566 } 567 }), 568 b.on("results:focus", function (a) { 569 a.element.addClass("select2-results__option--highlighted") 570 }), 571 b.on("results:message", function (a) { 572 d.displayMessage(a) 573
573 }), 574 a.fn.mousewheel && 575 this.$results.on("mousewheel", function (a) { 576 var b = d.$results.scrollTop(), 577 c = d.$results.get(0).scrollHeight - b + a.deltaY, 578 e = a.deltaY > 0 && b - a.deltaY <= 0, 579 f = a.deltaY < 0 && c <= d.$results.height() 580 e 581 ? (d.$results.scrollTop(0), a.preventDefault(), a.stopPropagation()) 582 : f && 583 (d.$results.scrollTop(d.$results.get(0).scrollHeight - d.$results.height()), 584 a.preventDefault(), 585 a.stopPropagation()) 586 }), 587 this.$results.on( 588 "mouseup", 589 ".select2-results__option[aria-selected]", 590 function (b) { 591 var c = a(this), 592 e = c.data("data") 593 return "true" === c.attr("aria-selected") 594 ? void (d.options.get("multiple") 595 ? d.trigger("unselect", { 596 originalEvent: b, 597 data: e, 598 }) 599 : d.trigger("close", {})) 600 : void d.trigger("select", { 601 originalEvent: b, 602 data: e, 603 }) 604 }, 605 ), 606 this.$results.on( 607 "mouseenter", 608 ".select2-results__option[aria-selected]", 609 function (b) { 610 var c = a(this).data("data") 611 d.getHighlightedResults().removeClass("select2-results__option--highlighted"), 612 d.trigger("results:focus", { 613 data: c, 614 element: a(this), 615 }) 616 }, 617 ) 618 }), 619 (c.prototype.getHighlightedResults = function () { 620 var a = this.$results.find(".select2-results__option--highlighted") 621 return a 622 }), 623 (c.prototype.destroy = function () { 624 this.$results.remove() 625 }), 626 (c.prototype.ensureHighlightVisible = function () { 627 var a = this.getHighlightedResults() 628 if (0 !== a.length) { 629 var b = this.$results.find("[aria-selected]"), 630 c = b.index(a), 631 d = this.$results.offset().top, 632 e = a.offset().top, 633 f = this.$results.scrollTop() + (e - d), 634 g = e - d 635 ;(f -= 2 * a.outerHeight(!1)), 636 2 >= c 637 ? this.$results.scrollTop(0) 638 : (g > this.$results.outerHeight() || 0 > g) && this.$results.scrollTop(f) 639 } 640 }), 641 (c.prototype.template = function (b, c) { 642 var d = this.options.get("templateResult"), 643 e = this.options.get("escapeMarkup"), 644 f = d(b, c) 645 null == f 646 ? (c.style.display = "none") 647 : "string" == typeof f 648 ? (c.innerHTML = e(f)) 649 : a(c).append(f) 650 }), 651 c 652 ) 653 }), 654 b.define("select2/keys", [], function () { 655 var a = { 656 BACKSPACE: 8, 657 TAB: 9, 658 ENTER: 13, 659 SHIFT: 16, 660 CTRL: 17, 661 ALT: 18, 662 ESC: 27, 663 SPACE: 32, 664 PAGE_UP: 33, 665 PAGE_DOWN: 34, 666 END: 35, 667 HOME: 36, 668 LEFT: 37, 669 UP: 38, 670 RIGHT: 39, 671 DOWN: 40, 672 DELETE: 46, 673 } 674 return a 675 }), 676 b.define("select2/selection/base", ["jquery", "../utils", "../keys"], function (a, b, c) { 677 function d(a, b) { 678 ;(this.$element = a), (this.options = b), d.__super__.constructor.call(this) 679 } 680 return ( 681 b.Extend(d, b.Observable), 682 (d.prototype.render = function () { 683 var b = a( 684 '<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>', 685 ) 686 return ( 687 (this._tabindex = 0), 688 null != this.$element.data("old-tabindex") 689 ? (this._tabindex = this.$element.data("old-tabindex")) 690 : null != this.$element.attr("tabindex") && 691 (this._tabindex = this.$element.attr("tabindex")), 692 b.attr("title", this.$element.attr("title")), 693 b.attr("tabindex", this._tabindex), 694 (this.$selection = b), 695 b 696 ) 697 }), 698 (d.prototype.bind = function (a, b) { 699 var d = this, 700 e = (a.id + "-container", a.id + "-results") 701 ;(this.container = a), 702 this.$selection.on("focus", function (a) { 703 d.trigger("focus", a) 704 }), 705 this.$selection.on("blur", function (a) { 706 d._handleBlur(a) 707 }), 708 this.$selection.on("keydown", function (a) { 709 d.trigger("keypress", a), a.which === c.SPACE && a.preventDefault() 710 }), 711 a.on("results:focus", function (a) { 712 d.$selection.attr("aria-activedescendant", a.data._resultId) 713 }), 714 a.on("selection:update", function (a) { 715 d.update(a.data) 716 }), 717 a.on("open", function () { 718 d.$selection.attr("aria-expanded", "true"), 719 d.$selection.attr("aria-owns", e), 720 d._attachCloseHandler(a) 721 }), 722 a.on("close", function () { 723 d.$selection.attr("aria-expanded", "false"), 724 d.$selection.removeAttr("aria-activedescendant"), 725 d.$selection.removeAttr("aria-owns"), 726 d.$selection.focus(), 727 d._detachCloseHandler(a) 728 }), 729 a.on("enable", function () { 730 d.$selection.attr("tabindex", d._tabindex) 731 }), 732 a.on("disable", function () { 733 d.$selection.attr("tabindex", "-1") 734 }) 735 }), 736 (d.prototype._handleBlur = function (b) { 737 var c = this 738 window.setTimeout(function () { 739 document.activeElement == c.$selection[0] || 740 a.contains(c.$selection[0], document.activeElement) || 741 c.trigger("blur", b) 742 }, 1) 743 }), 744 (d.prototype._attachCloseHandler = function (b) { 745 a(document.body).on("mousedown.select2." + b.id, function (b) { 746 var c = a(b.target), 747 d = c.closest(".select2"), 748 e = a(".select2.select2-container--open") 749 e.each(function () { 750 var b = a(this) 751 if (this != d[0]) { 752 var c = b.data("element") 753 c.mselect2("close") 754 } 755 }) 756 }) 757 }), 758 (d.prototype._detachCloseHandler = function (b) { 759 a(document.body).off("mousedown.select2." + b.id) 760 }), 761 (d.prototype.position = function (a, b) { 762 var c = b.find(".selection") 763 c.append(a) 764 }), 765 (d.prototype.destroy = function () { 766 this._detachCloseHandler(this.container) 767 }), 768 (d.prototype.update = function (a) { 769 throw new Error("The `update` method must be defined in child classes.") 770 }), 771 d 772 ) 773 }), 774 b.define( 775 "select2/selection/single", 776 ["jquery", "./base", "../utils", "../keys"], 777 function (a, b, c, d) { 778 function e() { 779 e.__super__.constructor.apply(this, arguments) 780 } 781 return ( 782 c.Extend(e, b), 783 (e.prototype.render = function () { 784 var a = e.__super__.render.call(this) 785 return ( 786 a.addClass("select2-selection--single"), 787 a.html( 788 '<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>', 789 ), 790 a 791 ) 792 }), 793 (e.prototype.bind = function (a, b) { 794 var c = this 795 e.__super__.bind.apply(this, arguments) 796 var d = a.id + "-container" 797 this.$selection.find(".select2-selection__rendered").attr("id", d), 798 this.$selection.attr("aria-labelledby", d), 799 this.$selection.on("mousedown", function (a) { 800 1 === a.which && c.trigger("toggle", { originalEvent: a }) 801 }), 802 this.$selection.on("focus", function (a) {}), 803 this.$selection.on("blur", function (a) {}), 804 a.on("focus", function (b) { 805 a.isOpen() || c.$selection.focus() 806 }), 807 a.on("selection:update", function (a) { 808 c.update(a.data) 809 }) 810 }), 811 (e.prototype.clear = function () { 812 this.$selection.find(".select2-selection__rendered").empty() 813 }), 814 (e.prototype.display = function (a, b) { 815 var c = this.options.get("templateSelection"), 816 d = this.options.get("escapeMarkup") 817 return d(c(a, b)) 818 }), 819 (e.prototype.selectionContainer = function () { 820 return a("<span></span>") 821 }), 822 (e.prototype.update = function (a) { 823 if (0 === a.length) return void this.clear() 824 var b = a[0], 825 c = this.$selection.find(".select2-selection__rendered"), 826 d = this.display(b, c) 827 c.empty().append(d), c.prop("title", b.title || b.text) 828 }), 829 e 830 ) 831 }, 832 ), 833 b.define( 834 "select2/selection/multiple", 835 ["jquery", "./base", "../utils"], 836 function (a, b, c) { 837 function d(a, b) { 838 d.__super__.constructor.apply(this, arguments) 839 } 840 return ( 841 c.Extend(d, b), 842 (d.prototype.render = function () { 843 var a = d.__super__.render.call(this) 844 return ( 845 a.addClass("select2-selection--multiple"), 846 a.html('<ul class="select2-selection__rendered"></ul>'), 847 a 848 ) 849 }), 850 (d.prototype.bind = function (b, c) { 851 var e = this 852 d.__super__.bind.apply(this, arguments), 853 this.$selection.on("click", function (a) { 854 e.trigger("toggle", { originalEvent: a }) 855 }), 856 this.$selection.on("click", ".select2-selection__choice__remove", function (b) { 857 if (!e.options.get("disabled")) { 858 var c = a(this), 859 d = c.parent(), 860 f = d.data("data") 861 e.trigger("unselect", { 862 originalEvent: b, 863 data: f, 864 }) 865 } 866 }) 867 }), 868 (d.prototype.clear = function () { 869 this.$selection.find(".select2-selection__rendered").empty() 870 }), 871 (d.prototype.display = function (a, b) { 872 var c = this.options.get("templateSelection"), 873 d = this.options.get("escapeMarkup") 874 return d(c(a, b)) 875 }), 876 (d.prototype.selectionContainer = function () { 877 var b = a( 878 '<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>', 879 ) 880 return b 881 }), 882 (d.prototype.update = function (a) { 883 if ((this.clear(), 0 !== a.length)) { 884 for (var b = [], d = 0; d < a.length; d++) { 885 var e = a[d], 886 f = this.selectionContainer(), 887 g = this.display(e, f) 888 f.append(g), f.prop("title", e.title || e.text), f.data("data", e), b.pu
888sh(f) 889 } 890 var h = this.$selection.find(".select2-selection__rendered") 891 c.appendMany(h, b) 892 } 893 }), 894 d 895 ) 896 }, 897 ), 898 b.define("select2/selection/placeholder", ["../utils"], function (a) { 899 function b(a, b, c) { 900 ;(this.placeholder = this.normalizePlaceholder(c.get("placeholder"))), 901 a.call(this, b, c) 902 } 903 return ( 904 (b.prototype.normalizePlaceholder = function (a, b) { 905 return "string" == typeof b && (b = { id: "", text: b }), b 906 }), 907 (b.prototype.createPlaceholder = function (a, b) { 908 var c = this.selectionContainer() 909 return ( 910 c.html(this.display(b)), 911 c 912 .addClass("select2-selection__placeholder") 913 .removeClass("select2-selection__choice"), 914 c 915 ) 916 }), 917 (b.prototype.update = function (a, b) { 918 var c = 1 == b.length && b[0].id != this.placeholder.id, 919 d = b.length > 1 920 if (d || c) return a.call(this, b) 921 this.clear() 922 var e = this.createPlaceholder(this.placeholder) 923 this.$selection.find(".select2-selection__rendered").append(e) 924 }), 925 b 926 ) 927 }), 928 b.define("select2/selection/allowClear", ["jquery", "../keys"], function (a, b) { 929 function c() {} 930 return ( 931 (c.prototype.bind = function (a, b, c) { 932 var d = this 933 a.call(this, b, c), 934 null == this.placeholder && 935 this.options.get("debug") && 936 window.console && 937 console.error && 938 console.error( 939 "Select2: The `allowClear` option should be used in combination with the `placeholder` option.", 940 ), 941 this.$selection.on("mousedown", ".select2-selection__clear", function (a) { 942 d._handleClear(a) 943 }), 944 b.on("keypress", function (a) { 945 d._handleKeyboardClear(a, b) 946 }) 947 }), 948 (c.prototype._handleClear = function (a, b) { 949 if (!this.options.get("disabled")) { 950 var c = this.$selection.find(".select2-selection__clear") 951 if (0 !== c.length) { 952 b.stopPropagation() 953 for (var d = c.data("data"), e = 0; e < d.length; e++) { 954 var f = { data: d[e] } 955 if ((this.trigger("unselect", f), f.prevented)) return 956 } 957 this.$element.val(this.placeholder.id).trigger("change"), 958 this.trigger("toggle", {}) 959 } 960 } 961 }), 962 (c.prototype._handleKeyboardClear = function (a, c, d) { 963 d.isOpen() || 964 ((c.which == b.DELETE || c.which == b.BACKSPACE) && this._handleClear(c)) 965 }), 966 (c.prototype.update = function (b, c) { 967 if ( 968 (b.call(this, c), 969 !( 970 this.$selection.find(".select2-selection__placeholder").length > 0 || 971 0 === c.length 972 )) 973 ) { 974 var d = a('<span class="select2-selection__clear">×</span>') 975 d.data("data", c), this.$selection.find(".select2-selection__rendered").prepend(d) 976 } 977 }), 978 c 979 ) 980 }), 981 b.define("select2/selection/search", ["jquery", "../utils", "../keys"], function (a, b, c) { 982 function d(a, b, c) { 983 a.call(this, b, c) 984 } 985 return ( 986 (d.prototype.render = function (b) { 987 var c = a( 988 '<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>', 989 ) 990 ;(this.$searchContainer = c), (this.$search = c.find("input")) 991 var d = b.call(this) 992 return this._transferTabIndex(), d 993 }), 994 (d.prototype.bind = function (a, b, d) { 995 var e = this 996 a.call(this, b, d), 997 b.on("open", function () { 998 e.$search.trigger("focus") 999 }), 1000 b.on("close", function () { 1001 e.$search.val(""), 1002 e.$search.removeAttr("aria-activedescendant"), 1003 e.$search.trigger("focus") 1004 }), 1005 b.on("enable", function () { 1006 e.$search.prop("disabled", !1), e._transferTabIndex() 1007 }), 1008 b.on("disable", function () { 1009 e.$search.prop("disabled", !0) 1010 }), 1011 b.on("focus", function (a) { 1012 e.$search.trigger("focus") 1013 }), 1014 b.on("results:focus", function (a) { 1015 e.$search.attr("aria-activedescendant", a.id) 1016 }), 1017 this.$selection.on("focusin", ".select2-search--inline", function (a) { 1018 e.trigger("focus", a) 1019 }), 1020 this.$selection.on("focusout", ".select2-search--inline", function (a) { 1021 e._handleBlur(a) 1022 }), 1023 this.$selection.on("keydown", ".select2-search--inline", function (a) { 1024 a.stopPropagation(), 1025 e.trigger("keypress", a), 1026 (e._keyUpPrevented = a.isDefaultPrevented()) 1027 var b = a.which 1028 if (b === c.BACKSPACE && "" === e.$search.val()) { 1029 var d = e.$searchContainer.prev(".select2-selection__choice") 1030 if (d.length > 0) { 1031 var f = d.data("data") 1032 e.searchRemoveChoice(f), a.preventDefault() 1033 } 1034 } 1035 }) 1036 var f = document.documentMode, 1037 g = f && 11 >= f 1038 this.$selection.on("input.searchcheck", ".select2-search--inline", function (a) { 1039 return g 1040 ? void e.$selection.off("input.search input.searchcheck") 1041 : void e.$selection.off("keyup.search") 1042 }), 1043 this.$selection.on( 1044 "keyup.search input.search", 1045 ".select2-search--inline", 1046 function (a) { 1047 if (g && "input" === a.type) 1048 return void e.$selection.off("input.search input.searchcheck") 1049 var b = a.which
1050 b != c.SHIFT && b != c.CTRL && b != c.ALT && b != c.TAB && e.handleSearch(a) 1051 }, 1052 ) 1053 }), 1054 (d.prototype._transferTabIndex = function (a) { 1055 this.$search.attr("tabindex", this.$selection.attr("tabindex")), 1056 this.$selection.attr("tabindex", "-1") 1057 }), 1058 (d.prototype.createPlaceholder = function (a, b) { 1059 this.$search.attr("placeholder", b.text) 1060 }), 1061 (d.prototype.update = function (a, b) { 1062 var c = this.$search[0] == document.activeElement 1063 this.$search.attr("placeholder", ""), 1064 a.call(this, b), 1065 this.$selection.find(".select2-selection__rendered").append(this.$searchContainer), 1066 this.resizeSearch(), 1067 c && this.$search.focus() 1068 }), 1069 (d.prototype.handleSearch = function () { 1070 if ((this.resizeSearch(), !this._keyUpPrevented)) { 1071 var a = this.$search.val() 1072 this.trigger("query", { term: a }) 1073 } 1074 this._keyUpPrevented = !1 1075 }), 1076 (d.prototype.searchRemoveChoice = function (a, b) { 1077 this.trigger("unselect", { data: b }), this.$search.val(b.text), this.handleSearch() 1078 }), 1079 (d.prototype.resizeSearch = function () { 1080 this.$search.css("width", "25px") 1081 var a = "" 1082 if ("" !== this.$search.attr("placeholder")) 1083 a = this.$selection.find(".select2-selection__rendered").innerWidth() 1084 else { 1085 var b = this.$search.val().length + 1 1086 a = 0.75 * b + "em" 1087 } 1088 this.$search.css("width", a) 1089 }), 1090 d 1091 ) 1092 }), 1093 b.define("select2/selection/eventRelay", ["jquery"], function (a) { 1094 function b() {} 1095 return ( 1096 (b.prototype.bind = function (b, c, d) { 1097 var e = this, 1098 f = [ 1099 "open", 1100 "opening", 1101 "close", 1102 "closing", 1103 "select", 1104 "selecting", 1105 "unselect", 1106 "unselecting", 1107 ], 1108 g = ["opening", "closing", "selecting", "unselecting"] 1109 b.call(this, c, d), 1110 c.on("*", function (b, c) { 1111 if (-1 !== a.inArray(b, f)) { 1112 c = c || {} 1113 var d = a.Event("select2:" + b, { params: c }) 1114 e.$element.trigger(d), 1115 -1 !== a.inArray(b, g) && (c.prevented = d.isDefaultPrevented()) 1116 } 1117 }) 1118 }), 1119 b 1120 ) 1121 }), 1122 b.define("select2/translation", ["jquery", "require"], function (a, b) { 1123 function c(a) { 1124 this.dict = a || {} 1125 } 1126 return ( 1127 (c.prototype.all = function () { 1128 return this.dict 1129 }), 1130 (c.prototype.get = function (a) { 1131 return this.dict[a] 1132 }), 1133 (c.prototype.extend = function (b) { 1134 this.dict = a.extend({}, b.all(), this.dict) 1135 }), 1136 (c._cache = {}), 1137 (c.loadPath = function (a) { 1138 if (!(a in c._cache)) { 1139 var d = b(a) 1140 c._cache[a] = d 1141 } 1142 return new c(c._cache[a]) 1143 }), 1144 c 1145 ) 1146 }), 1147 b.define("select2/diacritics", [], function () { 1148 var a = { 1149 "â¶": "A", 1150 A: "A", 1151 Ã: "A", 1152 Ã: "A", 1153 Ã: "A", 1154 Ầ: "A", 1155 Ấ: "A", 1156 Ẫ: "A", 1157 Ẩ: "A", 1158 Ã: "A", 1159 Ä: "A", 1160 Ä: "A", 1161 Ằ: "A", 1162 Ắ: "A", 1163 Ẵ: "A", 1164 Ẳ: "A", 1165 Ȧ: "A", 1166 Ç : "A", 1167 Ã: "A", 1168 Ç: "A", 1169 Ả: "A", 1170 à : "A", 1171 Ǻ: "A", 1172 Ç: "A", 1173 È: "A", 1174 È: "A", 1175 Ạ: "A", 1176 Ậ: "A", 1177 Ặ: "A", 1178 á¸: "A", 1179 Ä: "A", 1180 Ⱥ: "A", 1181 Ɐ: "A", 1182 ê²: "AA", 1183 Ã: "AE", 1184 Ǽ: "AE", 1185 Ç¢: "AE", 1186 ê´: "AO", 1187 ê¶: "AU", 1188 ê¸: "AV", 1189 êº: "AV", 1190 ê¼: "AY", 1191 "â·": "B", 1192 ï¼¢: "B", 1193 á¸: "B", 1194 á¸: "B", 1195 á¸: "B", 1196 É: "B", 1197 Æ: "B", 1198 Æ: "B", 1199 "â¸": "C", 1200 ï¼£: "C", 1201 Ä: "C", 1202 Ä: "C", 1203 Ä: "C", 1204 Ä: "C", 1205 Ã: "C", 1206 á¸: "C", 1207 Æ: "C", 1208 È»: "C", 1209 ê¾: "C", 1210 "â¹": "D", 1211 D: "D", 1212 á¸: "D", 1213 Ä: "D", 1214 á¸: "D", 1215 á¸: "D", 1216 á¸: "D", 1217 á¸: "D", 1218 Ä: "D", 1219 Æ: "D", 1220 Æ: "D", 1221 Æ: "D", 1222 ê¹: "D", 1223 DZ: "DZ", 1224 Ç: "DZ", 1225 Dz: "Dz", 1226 Ç : "Dz", 1227 "âº": "E", 1228 ï¼¥: "E", 1229 Ã: "E", 1230 Ã: "E", 1231 Ã: "E", 1232 á»: "E", 1233 Ế: "E", 1234 á»: "E", 1235 á»: "E", 1236 Ẽ: "E", 1237 Ä: "E", 1238 á¸: "E", 1239 á¸: "E", 1240 Ä: "E", 1241 Ä: "E", 1242 Ã: "E", 1243 Ẻ: "E", 1244 Ä: "E", 1245 È: "E", 1246 È: "E", 1247 Ẹ: "E", 1248 á»: "E", 1249 Ȩ: "E", 1250 á¸: "E", 1251 Ä: "E", 1252 á¸: "E", 1253 á¸: "E", 1254 Æ: "E", 1255 Æ: "E", 1256 "â»": "F", 1257 F: "F", 1258 á¸: "F", 1259 Æ: "F", 1260 ê»: "F", 1261 "â¼": "G", 1262 ï¼§: "G", 1263 Ç´: "G", 1264 Ä: "G", 1265 Ḡ: "G", 1266 Ä: "G", 1267 Ä : "G", 1268 Ǧ: "G", 1269 Ä¢: "G", 1270 Ǥ: "G", 1271 Æ: "G", 1272 ê : "G", 1273 ê½: "G", 1274 ê¾: "G", 1275 "â½": "H", 1276 H: "H", 1277 Ĥ: "H", 1278 Ḣ: "H", 1279 Ḧ: "H", 1280 È: "H", 1281 Ḥ: "H", 1282 Ḩ: "H", 1283 Ḫ: "H", 1284 Ħ: "H", 1285 â±§: "H", 1286 â±µ: "H", 1287 ê: "H", 1288 "â¾": "I", 1289 I: "I", 1290 Ã: "I", 1291 Ã: "I", 1292 Ã: "I", 1293 Ĩ: "I", 1294 Ī: "I", 1295 Ĭ: "I", 1296 İ: "I", 1297 Ã: "I", 1298 Ḯ: "I", 1299 á»: "I", 1300 Ç: "I", 1301 È: "I", 1302 È: "I", 1303 á»: "I", 1304 Ä®: "I", 1305 Ḭ: "I", 1306 Æ: "I", 1307 "â¿": "J", 1308 J: "J", 1309 Ä´: "J", 1310 É: "J", 1311 "â": "K", 1312 K: "K", 1313 Ḱ: "K", 1314 Ǩ: "K",
1315 Ḳ: "K", 1316 Ķ: "K", 1317 Ḵ: "K", 1318 Æ: "K", 1319 Ⱪ: "K", 1320 ê: "K", 1321 ê: "K", 1322 ê: "K", 1323 ê¢: "K", 1324 "â": "L", 1325 L: "L", 1326 Ä¿: "L", 1327 Ĺ: "L", 1328 Ľ: "L", 1329 Ḷ: "L", 1330 Ḹ: "L", 1331 Ä»: "L", 1332 Ḽ: "L", 1333 Ḻ: "L", 1334 Å: "L", 1335 Ƚ: "L", 1336 â±¢: "L", 1337 â± : "L", 1338 ê: "L", 1339 ê: "L", 1340 ê: "L", 1341 Ç: "LJ", 1342 Ç: "Lj", 1343 "â": "M", 1344 ï¼: "M", 1345 Ḿ: "M", 1346 á¹: "M", 1347 á¹: "M", 1348 â±®: "M", 1349 Æ: "M", 1350 "â": "N", 1351 ï¼®: "N", 1352 Ǹ: "N", 1353 Å: "N", 1354 Ã: "N", 1355 á¹: "N", 1356 Å: "N", 1357 á¹: "N", 1358 Å : "N", 1359 á¹: "N", 1360 á¹: "N", 1361 È : "N", 1362 Æ: "N", 1363 ê: "N", 1364 ê¤: "N", 1365 Ç: "NJ", 1366 Ç: "Nj", 1367 "â": "O", 1368 O: "O", 1369 Ã: "O", 1370 Ã: "O", 1371 Ã: "O", 1372 á»: "O", 1373 á»: "O", 1374 á»: "O", 1375 á»: "O", 1376 Ã: "O", 1377 á¹: "O", 1378 Ȭ: "O", 1379 á¹: "O", 1380 Å: "O", 1381 á¹: "O", 1382 á¹: "O", 1383 Å: "O", 1384 È®: "O", 1385 Ȱ: "O", 1386 Ã: "O", 1387 Ȫ: "O", 1388 á»: "O", 1389 Å: "O", 1390 Ç: "O", 1391 È: "O", 1392 È: "O", 1393 Æ : "O", 1394 á»: "O", 1395 á»: "O", 1396 á» : "O", 1397 á»: "O", 1398 Ợ: "O", 1399 á»: "O", 1400 á»: "O", 1401 Ǫ: "O", 1402 Ǭ: "O", 1403 Ã: "O", 1404 Ǿ: "O", 1405 Æ: "O", 1406 Æ: "O", 1407 ê: "O", 1408 ê: "O", 1409 Æ¢: "OI", 1410 ê: "OO", 1411 È¢: "OU", 1412 "â ": "P", 1413 ï¼°: "P", 1414 á¹: "P", 1415 á¹: "P", 1416 Ƥ: "P", 1417 â±£: "P", 1418 ê: "P", 1419 ê: "P", 1420 ê: "P", 1421 "â": "Q", 1422 ï¼±: "Q", 1423 ê: "Q", 1424 ê: "Q", 1425 É: "Q", 1426 "â": "R", 1427 ï¼²: "R", 1428 Å: "R", 1429 á¹: "R", 1430 Å: "R", 1431 È: "R", 1432 È: "R", 1433 á¹: "R", 1434 á¹: "R", 1435 Å: "R", 1436 á¹: "R", 1437 É: "R", 1438 Ɽ: "R", 1439 ê: "R", 1440 ê¦: "R", 1441 ê: "R", 1442 "â": "S", 1443 ï¼³: "S", 1444 áº: "S", 1445 Å: "S", 1446 Ṥ: "S", 1447 Å: "S", 1448 á¹ : "S", 1449 Å : "S", 1450 Ṧ: "S", 1451 á¹¢: "S", 1452 Ṩ: "S", 1453 È: "S", 1454 Å: "S", 1455 â±¾: "S", 1456 ê¨: "S", 1457 ê: "S", 1458 "â": "T", 1459 ï¼´: "T", 1460 Ṫ: "T", 1461 Ť: "T", 1462 Ṭ: "T", 1463 È: "T", 1464 Å¢: "T", 1465 á¹°: "T", 1466 á¹®: "T", 1467 Ŧ: "T", 1468 Ƭ: "T", 1469 Æ®: "T", 1470 Ⱦ: "T", 1471 ê: "T", 1472 ê¨: "TZ", 1473 "â": "U", 1474 ï¼µ: "U", 1475 Ã: "U", 1476 Ã: "U", 1477 Ã: "U", 1478 Ũ: "U", 1479 Ṹ: "U", 1480 Ū: "U", 1481 Ṻ: "U", 1482 Ŭ: "U", 1483 Ã: "U", 1484 Ç: "U", 1485 Ç: "U", 1486 Ç: "U", 1487 Ç: "U", 1488 Ủ: "U", 1489 Å®: "U", 1490 Ű: "U", 1491 Ç: "U", 1492 È: "U", 1493 È: "U", 1494 Ư: "U", 1495 Ừ: "U", 1496 Ứ: "U", 1497 á»®: "U", 1498 Ử: "U", 1499 á»°: "U", 1500 Ụ: "U", 1501 á¹²: "U", 1502 Ų: "U", 1503 á¹¶: "U", 1504 á¹´: "U", 1505 É: "U", 1506 "â": "V", 1507 ï¼¶: "V", 1508 á¹¼: "V", 1509 á¹¾: "V", 1510 Ʋ: "V", 1511 ê: "V", 1512 É : "V", 1513 ê : "VY", 1514 "â": "W", 1515 ï¼·: "W", 1516 áº: "W", 1517 áº: "W", 1518 Å´: "W", 1519 áº: "W", 1520 áº: "W", 1521 áº: "W", 1522 â±²: "W", 1523 "â": "X", 1524 X: "X", 1525 áº: "X", 1526 áº: "X", 1527 "â": "Y", 1528 ï¼¹: "Y", 1529 Ỳ: "Y", 1530 Ã: "Y", 1531 Ŷ: "Y", 1532 Ỹ: "Y", 1533 Ȳ: "Y", 1534 áº: "Y", 1535 Ÿ: "Y", 1536 á»¶: "Y", 1537 á»´: "Y", 1538 Ƴ: "Y", 1539 É: "Y", 1540 Ỿ: "Y", 1541 "â": "Z", 1542 Z: "Z", 1543 Ź: "Z", 1544 áº: "Z", 1545 Å»: "Z", 1546 Ž: "Z", 1547 áº: "Z", 1548 áº: "Z", 1549 Ƶ: "Z", 1550 Ȥ: "Z", 1551 Ɀ: "Z", 1552 Ⱬ: "Z", 1553 ê¢: "Z", 1554 "â": "a", 1555 ï½: "a", 1556 áº: "a", 1557 à : "a", 1558 á: "a", 1559 â: "a", 1560 ầ: "a", 1561 ấ: "a", 1562 ẫ: "a", 1563 ẩ: "a", 1564 ã: "a", 1565 Ä: "a", 1566 Ä: "a", 1567 ằ: "a", 1568 ắ: "a", 1569 ẵ: "a", 1570 ẳ: "a", 1571 ȧ: "a", 1572 Ç¡: "a", 1573 ä: "a", 1574 Ç: "a", 1575 ả: "a", 1576 Ã¥: "a", 1577 Ç»: "a", 1578 Ç: "a", 1579 È: "a", 1580 È: "a", 1581 ạ: "a", 1582 áº: "a", 1583 ặ: "a", 1584 á¸: "a", 1585 Ä : "a", 1586 â±¥: "a", 1587 É: "a", 1588 ê³: "aa", 1589 æ: "ae", 1590 ǽ: "ae", 1591 Ç£: "ae", 1592 êµ: "ao", 1593 ê·: "au", 1594 ê¹: "av", 1595 ê»: "av", 1596 ê½: "ay", 1597 "â": "b", 1598 ï½: "b", 1599 á¸: "b", 1600 Ḡ: "b", 1601 á¸: "b", 1602 Æ: "b", 1603 Æ: "b", 1604 É: "b", 1605 "â": "c", 1606 ï½: "c", 1607 Ä: "c", 1608 Ä: "c", 1609 Ä: "c", 1610 Ä: "c", 1611 ç: "c", 1612 á¸: "c", 1613 Æ: "c", 1614 ȼ: "c", 1615 ê¿: "c", 1616 â: "c", 1617 "â": "d", 1618 ï½: "d", 1619 á¸: "d", 1620 Ä: "d", 1621 á¸: "d", 1622 á¸: "d", 1623 á¸: "d", 1624 á¸: "d", 1625 Ä: "d", 1626 Æ: "d", 1627 É: "d", 1628 É: "d", 1629 êº: "d", 1630 dz: "dz", 1631 Ç: "dz", 1632 "â": "e", 1633 ï½ : "e", 1634 è: "e", 1635 é: "e", 1636 ê: "e", 1637 á»: "e", 1638 ế: "e", 1639 á» : "e", 1640 á»: "e", 1641 ẽ: "e", 1642 Ä: "e", 1643 á¸: "e", 1644 á¸: "e", 1645 Ä: "e", 1646 Ä: "e", 1647 ë: "e", 1648 ẻ: "e", 1649 Ä: "e", 1650 È : "e", 1651 È: "e", 1652 ẹ: "e", 1653 á»: "e", 1654 È©: "e", 1655 á¸: "e", 1656 Ä: "e", 1657 á¸: "e", 1658 á¸: "e", 1659 É: "e", 1660 É: "e", 1661 Ç: "e", 1662 "â": "f", 1663 ï½: "f", 1664 á¸: "f", 1665 Æ: "f", 1666 ê¼: "f", 1667 "â": "g", 1668 ï½: "g", 1669 ǵ: "g", 1670 Ä: "g", 1671 ḡ: "g", 1672 Ä: "g", 1673 Ä¡: "g", 1674 ǧ: "g", 1675 Ä£: "g", 1676 Ç¥: "g", 1677 É : "g", 1678 ê¡: "g", 1679 áµ¹: "g", 1680 ê¿: "g", 1681 "â": "h", 1682 ï½: "h", 1683 Ä¥: "h", 1684 ḣ: "h", 1685 ḧ: "h", 1686 È: "h", 1687 ḥ: "h", 1688 ḩ: "h", 1689 ḫ: "h", 1690 áº: "h", 1691 ħ: "h", 1692 ⱨ: "h", 1693 â±¶: "h", 1694 É¥: "h", 1695 Æ: "hv", 1696 "â": "i", 1697 ï½: "i", 1698 ì: "i", 1699 Ã: "i", 1700 î: "i", 1701 Ä©: "i", 1702 Ä«: "i", 1703 Ä: "i", 1704 ï: "i", 1705 ḯ: "i", 1706 á»: "i", 1707 Ç: "i", 1708 È: "i", 1709 È: "i", 1710 á»: "i", 1711 į: "i", 1712 á¸: "i", 1713 ɨ: "i", 1714 ı: "i", 1715 "â": "j", 1716 ï½: "j", 1717 ĵ: "j", 1718 ǰ: "j", 1719 É: "j", 1720 "â": "k", 1721 ï½: "k", 1722 ḱ: "k", 1723 Ç©: "k", 1724 ḳ: "k", 1725 Ä·: "k", 1726 ḵ: "k", 1727 Æ: "k", 1728 ⱪ: "k", 1729 ê: "k", 1730 ê: "k", 1731 ê : "k", 1732 ê£: "k", 1733 "â": "l", 1734 ï½: "l", 1735 Å: "l", 1736 ĺ: "l", 1737 ľ: "l", 1738 ḷ: "l", 1739 ḹ: "l", 1740 ļ: "l", 1741 ḽ: "l", 1742 ḻ: "l", 1743 Å¿: "l", 1744 Å: "l", 1745 Æ: "l", 1746 É«: "l", 1747 ⱡ: "l", 1748 ê: "l", 1749 ê: "l", 1750 ê: "l", 1751 Ç: "lj", 1752 "â": "m", 1753 ï½: "m", 1754 ḿ: "m", 1755 á¹: "m", 1756 á¹: "m", 1757 ɱ: "m", 1758 ɯ: "m", 1759 "â": "n", 1760 ï½: "n", 1761 ǹ: "n", 1762 Å: "n", 1763 ñ: "n", 1764 á¹ : "n", 1765 Å: "n", 1766 á¹: "n", 1767 Å: "n", 1768 á¹: "n", 1769 á¹: "n",
1770 Æ: "n", 1771 ɲ: "n", 1772 Å: "n", 1773 ê: "n", 1774 ê¥: "n", 1775 Ç: "nj", 1776 "â": "o", 1777 ï½: "o", 1778 ò: "o", 1779 ó: "o", 1780 ô: "o", 1781 á»: "o", 1782 á»: "o", 1783 á»: "o", 1784 á»: "o", 1785 õ: "o", 1786 á¹: "o", 1787 È: "o", 1788 á¹: "o", 1789 Å: "o", 1790 á¹: "o", 1791 á¹: "o", 1792 Å: "o", 1793 ȯ: "o", 1794 ȱ: "o", 1795 ö: "o", 1796 È«: "o", 1797 á»: "o", 1798 Å: "o", 1799 Ç: "o", 1800 È: "o", 1801 È: "o", 1802 Æ¡: "o", 1803 á»: "o", 1804 á»: "o", 1805 ỡ: "o", 1806 á»: "o", 1807 ợ: "o", 1808 á»: "o", 1809 á»: "o", 1810 Ç«: "o", 1811 Ç: "o", 1812 ø: "o", 1813 Ç¿: "o", 1814 É: "o", 1815 ê: "o", 1816 ê: "o", 1817 ɵ: "o", 1818 Æ£: "oi", 1819 È£: "ou", 1820 ê: "oo", 1821 "â": "p", 1822 ï½: "p", 1823 á¹: "p", 1824 á¹: "p", 1825 Æ¥: "p", 1826 áµ½: "p", 1827 ê: "p", 1828 ê: "p", 1829 ê: "p", 1830 "â ": "q", 1831 ï½: "q", 1832 É: "q", 1833 ê: "q", 1834 ê: "q", 1835 "â¡": "r", 1836 ï½: "r", 1837 Å: "r", 1838 á¹: "r", 1839 Å: "r", 1840 È: "r", 1841 È: "r", 1842 á¹: "r", 1843 á¹: "r", 1844 Å: "r", 1845 á¹: "r", 1846 É: "r", 1847 ɽ: "r", 1848 ê: "r", 1849 ê§: "r", 1850 ê: "r", 1851 "â¢": "s", 1852 ï½: "s", 1853 Ã: "s", 1854 Å: "s", 1855 á¹¥: "s", 1856 Å: "s", 1857 ṡ: "s", 1858 Å¡: "s", 1859 á¹§: "s", 1860 á¹£: "s", 1861 ṩ: "s", 1862 È: "s", 1863 Å: "s", 1864 È¿: "s", 1865 ê©: "s", 1866 ê : "s", 1867 áº: "s", 1868 "â£": "t", 1869 ï½: "t", 1870 ṫ: "t", 1871 áº: "t", 1872 Å¥: "t", 1873 á¹: "t", 1874 È: "t", 1875 Å£: "t", 1876 á¹±: "t", 1877 ṯ: "t", 1878 ŧ: "t", 1879 Æ: "t", 1880 Ê: "t", 1881 ⱦ: "t", 1882 ê: "t", 1883 ê©: "tz", 1884 "â¤": "u", 1885 ï½: "u", 1886 ù: "u", 1887 ú: "u", 1888 û: "u", 1889 Å©: "u", 1890 á¹¹: "u", 1891 Å«: "u", 1892 á¹»: "u", 1893 Å: "u", 1894 ü: "u", 1895 Ç: "u", 1896 Ç: "u", 1897 Ç: "u", 1898 Ç: "u", 1899 á»§: "u", 1900 ů: "u", 1901 ű: "u", 1902 Ç: "u", 1903 È: "u", 1904 È: "u", 1905 ư: "u", 1906 ừ: "u", 1907 ứ: "u", 1908 ữ: "u", 1909 á»: "u", 1910 á»±: "u", 1911 ụ: "u", 1912 á¹³: "u", 1913 ų: "u", 1914 á¹·: "u", 1915 á¹µ: "u", 1916 Ê: "u", 1917 "â¥": "v", 1918 ï½: "v", 1919 á¹½: "v", 1920 ṿ: "v", 1921 Ê: "v", 1922 ê: "v", 1923 Ê: "v", 1924 ê¡: "vy", 1925 "â¦": "w", 1926 ï½: "w", 1927 áº: "w", 1928 áº: "w", 1929 ŵ: "w", 1930 áº: "w", 1931 Ạ: "w", 1932 áº: "w",
1933 áº: "w", 1934 â±³: "w", 1935 "â§": "x", 1936 ï½: "x", 1937 áº: "x", 1938 áº: "x", 1939 "â¨": "y", 1940 ï½: "y", 1941 ỳ: "y", 1942 ý: "y", 1943 Å·: "y", 1944 ỹ: "y", 1945 ȳ: "y", 1946 áº: "y", 1947 ÿ: "y", 1948 á»·: "y", 1949 áº: "y", 1950 ỵ: "y", 1951 Æ´: "y", 1952 É: "y", 1953 ỿ: "y", 1954 "â©": "z", 1955 ï½: "z", 1956 ź: "z", 1957 áº: "z", 1958 ż: "z", 1959 ž: "z", 1960 áº: "z", 1961 áº: "z", 1962 ƶ: "z", 1963 È¥: "z", 1964 É: "z", 1965 ⱬ: "z", 1966 ê£: "z", 1967 Î: "Î", 1968 Î: "Î", 1969 Î: "Î", 1970 Î: "Î", 1971 Ϊ: "Î", 1972 Î: "Î", 1973 Î: "Î¥", 1974 Ϋ: "Î¥", 1975 Î: "Ω", 1976 ά: "α", 1977 Î: "ε", 1978 ή: "η", 1979 ί: "ι", 1980 Ï: "ι", 1981 Î: "ι", 1982 Ï: "ο", 1983 Ï: "Ï ", 1984 Ï: "Ï ", 1985 ΰ: "Ï ", 1986 Ï: "Ï", 1987 Ï: "Ï", 1988 } 1989 return a 1990 }), 1991 b.define("select2/data/base", ["../utils"], function (a) { 1992 function b(a, c) { 1993 b.__super__.constructor.call(this) 1994 } 1995 return ( 1996 a.Extend(b, a.Observable), 1997 (b.prototype.current = function (a) { 1998 throw new Error("The `current` method must be defined in child classes.") 1999 }), 2000 (b.prototype.query = function (a, b) { 2001 throw new Error("The `query` method must be defined in child classes.") 2002 }), 2003 (b.prototype.bind = function (a, b) {}), 2004 (b.prototype.destroy = function () {}), 2005 (b.prototype.generateResultId = function (b, c) { 2006 var d = b.id + "-result-" 2007 return ( 2008 (d += a.generateChars(4)), 2009 (d += null != c.id ? "-" + c.id.toString() : "-" + a.generateChars(4)) 2010 ) 2011 }), 2012 b 2013 ) 2014 }), 2015 b.define("select2/data/select", ["./base", "../utils", "jquery"], function (a, b, c) { 2016 function d(a, b) { 2017 ;(this.$element = a), (this.options = b), d.__super__.constructor.call(this) 2018 } 2019 return ( 2020 b.Extend(d, a), 2021 (d.prototype.current = function (a) { 2022 var b = [], 2023 d = this 2024 this.$element.find(":selected").each(function () { 2025 var a = c(this), 2026 e = d.item(a) 2027 b.push(e) 2028 }), 2029 a(b) 2030 }), 2031 (d.prototype.select = function (a) { 2032 var b = this 2033 if (((a.selected = !0), c(a.element).is("option"))) 2034 return (a.element.selected = !0), void this.$element.trigger("change") 2035 if (this.$element.prop("multiple")) 2036 this.current(function (d) { 2037 var e = [] 2038 ;(a = [a]), a.push.apply(a, d) 2039 for (var f = 0; f < a.length; f++) { 2040 var g = a[f].id 2041 ;-1 === c.inArray(g, e) && e.push(g) 2042 } 2043 b.$element.val(e), b.$element.trigger("change") 2044 }) 2045 else { 2046 var d = a.id 2047 this.$element.val(d), this.$element.trigger("change") 2048 } 2049 }), 2050 (d.prototype.unselect = function (a) { 2051 var b = this 2052 if (this.$element.prop("multiple")) 2053 return ( 2054 (a.selected = !1), 2055 c(a.element).is("option") 2056 ? ((a.element.selected = !1), void this.$element.trigger("change")) 2057 : void this.current(function (d) { 2058 for (var e = [], f = 0; f < d.length; f++) { 2059 var g = d[f].id 2060 g !== a.id && -1 === c.inArray(g, e) && e.push(g) 2061 } 2062 b.$element.val(e), b.$element.trigger("change") 2063 }) 2064 ) 2065 }), 2066 (d.prototype.bind = function (a, b) { 2067 var c = this 2068 ;(this.container = a), 2069 a.on("select", function (a) { 2070 c.select(a.data) 2071 }), 2072 a.on("unselect", function (a) { 2073 c.unselect(a.data) 2074 }) 2075 }), 2076 (d.prototype.destroy = function () { 2077 this.$element.find("*").each(function () { 2078 c.removeData(this, "data") 2079 }) 2080 }), 2081 (d.prototype.query = function (a, b) { 2082 var d = [], 2083 e = this, 2084 f = this.$element.children() 2085 f.each(function () { 2086 var b = c(this) 2087 if (b.is("option") || b.is("optgroup")) { 2088 var f = e.item(b), 2089 g = e.matches(a, f) 2090 null !== g && d.push(g) 2091 } 2092 }), 2093 b({ results: d }) 2094 }), 2095 (d.prototype.addOptions = function (a) { 2096 b.appendMany(this.$element, a) 2097 }), 2098 (d.prototype.option = function (a) { 2099 var b 2100 a.children 2101 ? ((b = document.createElement("optgroup")), (b.label = a.text)) 2102 : ((b = document.createElement("option")), 2103 void 0 !== b.textContent ? (b.textContent = a.text) : (b.innerText = a.text)), 2104 a.id && (b.value = a.id), 2105 a.disabled && (b.disabled = !0), 2106 a.selected && (b.selected = !0), 2107 a.title && (b.title = a.title) 2108 var d = c(b),
2109 e = this._normalizeItem(a) 2110 return (e.element = b), c.data(b, "data", e), d 2111 }), 2112 (d.prototype.item = function (a) { 2113 var b = {} 2114 if (((b = c.data(a[0], "data")), null != b)) return b 2115 if (a.is("option")) 2116 b = { 2117 id: a.val(), 2118 text: a.text(), 2119 disabled: a.prop("disabled"), 2120 selected: a.prop("selected"), 2121 title: a.prop("title"), 2122 } 2123 else if (a.is("optgroup")) { 2124 b = { 2125 text: a.prop("label"), 2126 children: [], 2127 title: a.prop("title"), 2128 } 2129 for (var d = a.children("option"), e = [], f = 0; f < d.length; f++) { 2130 var g = c(d[f]), 2131 h = this.item(g) 2132 e.push(h) 2133 } 2134 b.children = e 2135 } 2136 return (b = this._normalizeItem(b)), (b.element = a[0]), c.data(a[0], "data", b), b 2137 }), 2138 (d.prototype._normalizeItem = function (a) { 2139 c.isPlainObject(a) || (a = { id: a, text: a }), (a = c.extend({}, { text: "" }, a)) 2140 var b = { selected: !1, disabled: !1 } 2141 return ( 2142 null != a.id && (a.id = a.id.toString()), 2143 null != a.text && (a.text = a.text.toString()), 2144 null == a._resultId && 2145 a.id && 2146 null != this.container && 2147 (a._resultId = this.generateResultId(this.container, a)), 2148 c.extend({}, b, a) 2149 ) 2150 }), 2151 (d.prototype.matches = function (a, b) { 2152 var c = this.options.get("matcher") 2153 return c(a, b) 2154 }), 2155 d 2156 ) 2157 }), 2158 b.define("select2/data/array", ["./select", "../utils", "jquery"], function (a, b, c) { 2159 function d(a, b) { 2160 var c = b.get("data") || [] 2161 d.__super__.constructor.call(this, a, b), this.addOptions(this.convertToOptions(c)) 2162 } 2163 return ( 2164 b.Extend(d, a), 2165 (d.prototype.select = function (a) { 2166 var b = this.$element.find("option").filter(function (b, c) { 2167 return c.value == a.id.toString() 2168 }) 2169 0 === b.length && ((b = this.option(a)), this.addOptions(b)), 2170 d.__super__.select.call(this, a) 2171 }), 2172 (d.prototype.convertToOptions = function (a) { 2173 function d(a) { 2174 return function () { 2175 return c(this).val() == a.id 2176 } 2177 } 2178 for ( 2179 var e = this, 2180 f = this.$element.find("option"), 2181 g = f 2182 .map(function () { 2183 return e.item(c(this)).id 2184 }) 2185 .get(), 2186 h = [], 2187 i = 0; 2188 i < a.length; 2189 i++ 2190 ) { 2191 var j = this._normalizeItem(a[i]) 2192 if (c.inArray(j.id, g) >= 0) { 2193 var k = f.filter(d(j)), 2194 l = this.item(k), 2195 m = c.extend(!0, {}, j, l), 2196 n = this.option(m) 2197 k.replaceWith(n) 2198 } else { 2199 var o = this.option(j) 2200 if (j.children) { 2201 var p = this.convertToOptions(j.children) 2202 b.appendMany(o, p) 2203 } 2204 h.push(o) 2205 } 2206 } 2207 return h 2208 }), 2209 d 2210 ) 2211 }), 2212 b.define("select2/data/ajax", ["./array", "../utils", "jquery"], function (a, b, c) { 2213 function d(a, b) { 2214 ;(this.ajaxOptions = this._applyDefaults(b.get("ajax"))), 2215 null != this.ajaxOptions.processResults && 2216 (this.processResults = this.ajaxOptions.processResults), 2217 d.__super__.constructor.call(this, a, b) 2218 } 2219 return ( 2220 b.Extend(d, a), 2221 (d.prototype._applyDefaults = function (a) { 2222 var b = { 2223 data: function (a) { 2224 return c.extend({}, a, { q: a.term }) 2225 }, 2226 transport: function (a, b, d) { 2227 var e = c.ajax(a) 2228 return e.then(b), e.fail(d), e 2229 }, 2230 } 2231 return c.extend({}, b, a, !0) 2232 }), 2233 (d.prototype.processResults = function (a) { 2234 return a 2235 }), 2236 (d.prototype.query = function (a, b) { 2237 function d() { 2238 var d = f.transport( 2239 f, 2240 function (d) { 2241 var f = e.processResults(d, a) 2242 e.options.get("debug") && 2243 window.console && 2244 console.error && 2245 ((f && f.results && c.isArray(f.results)) || 2246 console.error( 2247 "Select2: The AJAX results did not return an array in the `results` key of the response.", 2248 )), 2249 b(f) 2250 }, 2251 function () { 2252 ;(d.status && "0" === d.status) || 2253 e.trigger("results:message", { 2254 message: "errorLoading", 2255 }) 2256 }, 2257 ) 2258 e._request = d 2259 } 2260 var e = this 2261 null != this._request && 2262 (c.isFunction(this._request.abort) && this._request.abort(), (this._request = null)) 2263 var f = c.extend({ type: "GET" }, this.ajaxOptions) 2264 "function" == typeof f.url && (f.url = f.url.call(this.$element, a)), 2265 "function" == typeof f.data && (f.data = f.data.call(this.$element, a)), 2266 this.ajaxOptions.delay && null != a.term 2267 ? (this._queryTimeout && window.clearTimeout(this._queryTimeout), 2268 (this._queryTimeout = window.setTimeout(d, this.ajaxOptions.delay))) 2269 : d() 2270 }), 2271 d 2272 ) 2273 }), 2274 b.define("select2/data/tags", ["jquery"], function (a) { 2275 function b(b, c, d) { 2276 var e = d.get("tags"), 2277 f = d.get("createTag") 2278 void 0 !== f && (this.createTag = f) 2279 var g = d.get("insertTag") 2280 if ((void 0 !== g && (this.insertTag = g), b.call(this, c, d), a.isArray(e))) 2281 for (var h = 0; h < e.length; h++) { 2282 var i = e[h], 2283 j = this._normalizeItem(i), 2284 k = this.option(j) 2285 this.$element.append(k) 2286 } 2287 } 2288 return ( 2289 (b.prototype.query = function (a, b, c) { 2290 function d(a, f) { 2291 for (var g = a.results, h = 0; h < g.length; h++) { 2292 var i = g[h], 2293 j = null != i.children && !d({ results: i.children }, !0), 2294 k = i.text === b.term 2295 if (k || j) return f ? !1 : ((a.data = g), void c(a)) 2296 } 2297 if (f) return !0 2298 var l = e.createTag(b) 2299 if (null != l) { 2300 var m = e.option(l) 2301 m.attr("data-select2-tag", !0), e.addOptions([m]), e.insertTag(g, l) 2302 } 2303 ;(a.results = g), c(a) 2304 } 2305 var e = this 2306 return ( 2307 this._removeOldTags(), 2308 null == b.term || null != b.page ? void a.call(this, b, c) : void a.call(this, b, d) 2309 ) 2310 }), 2311 (b.prototype.createTag = function (b, c) { 2312 var d = a.trim(c.term) 2313 return "" === d ? null : { id: d, text: d } 2314 }), 2315 (b.prototype.insertTag = function (a, b, c) { 2316 b.unshift(c) 2317 }), 2318 (b.prototype._removeOldTags = function (b) { 2319 var c = (this._lastTag, this.$element.find("option[data-select2-tag]")) 2320 c.each(function () { 2321 this.selected || a(this).remove() 2322 }) 2323 }), 2324 b 2325 ) 2326 }), 2327 b.define("select2/data/tokenizer", ["jquery"], function (a) { 2328 function b(a, b, c) { 2329 var d = c.get("tokenizer") 2330 void 0 !== d && (this.tokenizer = d), a.call(this, b, c) 2331 } 2332 return ( 2333 (b.prototype.bind = function (a, b, c) { 2334 a.call(this, b, c), 2335 (this.$search = 2336 b.dropdown.$search || b.selection.$search || c.find(".select2-search__field")) 2337 }), 2338 (b.prototype.query = function (b, c, d) { 2339 function e(b) { 2340 var c = g._normalizeItem(b), 2341 d = g.$element.find("option").filter(function () { 2342 return a(this).val() === c.id 2343 }) 2344 if (!d.length) { 2345 var e = g.option(c) 2346 e.attr("data-select2-tag", !0), g._removeOldTags(), g.addOptions([e]) 2347 } 2348 f(c) 2349 } 2350 function f(a) { 2351 g.trigger("select", { data: a }) 2352 } 2353 var g = this 2354 c.term = c.term || "" 2355 var h = this.tokenizer(c, this.options, e) 2356 h.term !== c.term && 2357 (this.$search.length && (this.$search.val(h.term), this.$search.focus()), 2358 (c.term = h.term)), 2359 b.call(this, c, d) 2360 }), 2361 (b.prototype.tokenizer = function (b, c, d, e) { 2362 for ( 2363 var f = d.get("tokenSeparators") || [], 2364 g = c.term, 2365 h = 0, 2366 i = 2367 this.createTag || 2368 function (a) { 2369 return { id: a.term, text: a.term } 2370 }; 2371 h < g.length; 2372 2373 ) { 2374 var j = g[h] 2375 if (-1 !== a.inArray(j, f)) { 2376 var k = g.substr(0, h), 2377 l = a.extend({}, c, { term: k }), 2378 m = i(l) 2379 null != m ? (e(m), (g = g.substr(h + 1) || ""), (h = 0)) : h++ 2380 } else h++ 2381 } 2382 return { term: g } 2383 }), 2384 b 2385 ) 2386 }), 2387 b.define("select2/data/minimumInputLength", [], function () { 2388 function a(a, b, c) { 2389 ;(this.minimumInputLength = c.get("minimumInputLength")), a.call(this, b, c) 2390 } 2391 return ( 2392 (a.prototype.query = function (a, b, c) { 2393 return ( 2394 (b.term = b.term || ""), 2395 b.term.length < this.minimumInputLength 2396 ? void this.trigger("results:message", { 2397 message: "inputTooShort", 2398 args: { 2399 minimum: this.minimumInputLength, 2400 input: b.term, 2401 params: b, 2402 }, 2403 }) 2404 : void a.call(this, b, c) 2405 ) 2406 }), 2407 a 2408 ) 2409 }), 2410 b.define("select2/data/maximumInputLength", [], function () { 2411 function a(a, b, c) { 2412 ;(this.maximumInputLength = c.get("maximumInputLength")), a.call(this, b, c) 2413 } 2414 return ( 2415 (a.prototype.query = function (a, b, c) { 2416 return ( 2417 (b.term = b.term || ""), 2418 this.maximumInputLength > 0 && b.term.length > this.maximumInputLength 2419 ? void this.trigger("results:message", { 2420 message: "inputTooLong", 2421 args: { 2422 maximum: this.maximumInputLength, 2423 input: b.term, 2424 params: b, 2425 }, 2426 }) 2427 : void a.call(this, b, c) 2428 ) 2429 }), 2430 a 2431 ) 2432 }), 2433 b.define("select2/data/maximumSelectionLength", [], function () { 2434 function a(a, b, c) { 2435 ;(this.maximumSelectionLength = c.get("maximumSelectionLength")), a.call(this, b, c) 2436 } 2437 return ( 2438 (a.prototype.query = function (a, b, c) { 2439 var d = this 2440 this.current(function (e) { 2441 var f = null != e ? e.length : 0 2442 return d.maximumSelectionLength > 0 && f >= d.maximumSelectionLength 2443 ? void d.trigger("results:message", { 2444 message: "maximumSelected", 2445 args: { maximum: d.maximumSelectionLength }, 2446 }) 2447 : void a.call(d, b, c) 2448 }) 2449 }), 2450 a 2451 ) 2452 }), 2453 b.define("select2/dropdown", ["jquery", "./utils"], function (a, b) { 2454 function c(a, b) { 2455 ;(this.$element = a), (this.options = b), c.__super__.constructor.call(this) 2456 } 2457 return ( 2458 b.Extend(c, b.Observable), 2459 (c.prototype.render = function () { 2460 var b = a( 2461 '<span class="select2-dropdown"><span class="select2-results"></span></span>', 2462 ) 2463 return b.attr("dir", this.options.get("dir")), (this.$dropdown = b), b 2464 }), 2465 (c.prototype.bind = function () {}), 2466 (c.prototype.position = function (a, b) {}), 2467 (c.prototype.destroy = function () { 2468 this.$dropdown.remove() 2469 }), 2470 c 2471 ) 2472 }), 2473 b.define("select2/dropdown/search", ["jquery", "../utils"], function (a, b) { 2474 function c() {} 2475 return ( 2476 (c.prototype.render = function (b) { 2477 var c = b.call(this), 2478 d = a( 2479 '<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>', 2480 ) 2481 return (this.$searchContainer = d), (this.$search = d.find("input")), c.prepend(d), c 2482 }), 2483 (c.prototype.bind = function (b, c, d) { 2484 var e = this 2485 b.call(this, c, d), 2486 this.$search.on("keydown", function (a) { 2487 e.trigger("keypress", a), (e._keyUpPrevented = a.isDefaultPrevented()) 2488 }), 2489 this.$search.on("input", function (b) { 2490 a(this).off("keyup") 2491 }), 2492 this.$search.on("keyup input", function (a) { 2493 e.handleSearch(a) 2494 }), 2495 c.on("open", function () { 2496 e.$search.attr("tabindex", 0), 2497 e.$search.focus(), 2498 window.setTimeout(function () { 2499 e.$search.focus() 2500 }, 0) 2501 }), 2502 c.on("close", function () { 2503 e.$search.attr("tabindex", -1), e.$search.val("") 2504 }), 2505 c.on("focus", function () { 2506 c.isOpen() && e.$search.focus() 2507 }), 2508 c.on("results:all", function (a) { 2509 if (null == a.query.term || "" === a.query.term) { 2510 var b = e.showSearch(a) 2511 b 2512 ? e.$searchContainer.removeClass("select2-search--hide") 2513 : e.$searchContainer.addClass("select2-search--hide") 2514 } 2515 }) 2516 }), 2517 (c.prototype.handleSearch = function (a) { 2518 if (!this._keyUpPrevented) { 2519 var b = this.$search.val() 2520 this.trigger("query", { term: b }) 2521 } 2522 this._keyUpPrevented = !1 2523 }), 2524 (c.prototype.showSearch = function (a, b) { 2525 return !0 2526
2526 }), 2527 c 2528 ) 2529 }), 2530 b.define("select2/dropdown/hidePlaceholder", [], function () { 2531 function a(a, b, c, d) { 2532 ;(this.placeholder = this.normalizePlaceholder(c.get("placeholder"))), 2533 a.call(this, b, c, d) 2534 } 2535 return ( 2536 (a.prototype.append = function (a, b) { 2537 ;(b.results = this.removePlaceholder(b.results)), a.call(this, b) 2538 }), 2539 (a.prototype.normalizePlaceholder = function (a, b) { 2540 return "string" == typeof b && (b = { id: "", text: b }), b 2541 }), 2542 (a.prototype.removePlaceholder = function (a, b) { 2543 for (var c = b.slice(0), d = b.length - 1; d >= 0; d--) { 2544 var e = b[d] 2545 this.placeholder.id === e.id && c.splice(d, 1) 2546 } 2547 return c 2548 }), 2549 a 2550 ) 2551 }), 2552 b.define("select2/dropdown/infiniteScroll", ["jquery"], function (a) { 2553 function b(a, b, c, d) { 2554 ;(this.lastParams = {}), 2555 a.call(this, b, c, d), 2556 (this.$loadingMore = this.createLoadingMore()), 2557 (this.loading = !1) 2558 } 2559 return ( 2560 (b.prototype.append = function (a, b) { 2561 this.$loadingMore.remove(), 2562 (this.loading = !1), 2563 a.call(this, b), 2564 this.showLoadingMore(b) && this.$results.append(this.$loadingMore) 2565 }), 2566 (b.prototype.bind = function (b, c, d) { 2567 var e = this 2568 b.call(this, c, d), 2569 c.on("query", function (a) { 2570 ;(e.lastParams = a), (e.loading = !0) 2571 }), 2572 c.on("query:append", function (a) { 2573 ;(e.lastParams = a), (e.loading = !0) 2574 }), 2575 this.$results.on("scroll", function () { 2576 var b = a.contains(document.documentElement, e.$loadingMore[0]) 2577 if (!e.loading && b) { 2578 var c = e.$results.offset().top + e.$results.outerHeight(!1), 2579 d = e.$loadingMore.offset().top + e.$loadingMore.outerHeight(!1) 2580 c + 50 >= d && e.loadMore() 2581 } 2582 }) 2583 }), 2584 (b.prototype.loadMore = function () { 2585 this.loading = !0 2586 var b = a.extend({}, { page: 1 }, this.lastParams) 2587 b.page++, this.trigger("query:append", b) 2588 }), 2589 (b.prototype.showLoadingMore = function (a, b) { 2590 return b.pagination && b.pagination.more 2591 }), 2592 (b.prototype.createLoadingMore = function () { 2593 var b = a( 2594 '<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>', 2595 ), 2596 c = this.options.get("translations").get("loadingMore") 2597 return b.html(c(this.lastParams)), b 2598 }), 2599 b 2600 ) 2601 }), 2602 b.define("select2/dropdown/attachBody", ["jquery", "../utils"], function (a, b) { 2603 function c(b, c, d) { 2604 ;(this.$dropdownParent = d.get("dropdownParent") || a(document.body)), 2605 b.call(this, c, d) 2606 } 2607 return ( 2608 (c.prototype.bind = function (a, b, c) { 2609 var d = this, 2610 e = !1 2611 a.call(this, b, c), 2612 b.on("open", function () { 2613 d._showDropdown(), 2614 d._attachPositioningHandler(b), 2615 e || 2616 ((e = !0), 2617 b.on("results:all", function () { 2618 d._positionDropdown(), d._resizeDropdown() 2619 }), 2620 b.on("results:append", function () { 2621 d._positionDropdown(), d._resizeDropdown() 2622 })) 2623 }), 2624 b.on("close", function () { 2625 d._hideDropdown(), d._detachPositioningHandler(b) 2626 }), 2627 this.$dropdownContainer.on("mousedown", function (a) { 2628 a.stopPropagation() 2629 }) 2630 }), 2631 (c.prototype.destroy = function (a) { 2632 a.call(this), this.$dropdownContainer.remove() 2633 }), 2634 (c.prototype.position = function (a, b, c) { 2635 b.attr("class", c.attr("class")), 2636 b.removeClass("select2"), 2637 b.addClass("select2-container--open"), 2638 b.css({ position: "absolute", top: -999999 }), 2639 (this.$container = c) 2640 }), 2641 (c.prototype.render = function (b) { 2642 var c = a("<span></span>"), 2643 d = b.call(this) 2644 return c.append(d), (this.$dropdownContainer = c), c 2645 }), 2646 (c.prototype._hideDropdown = function (a) { 2647 this.$dropdownContainer.detach() 2648 }), 2649 (c.prototype._attachPositioningHandler = function (c, d) { 2650 var e = this, 2651 f = "scroll.select2." + d.id, 2652 g = "resize.select2." + d.id, 2653 h = "orientationchange.select2." + d.id, 2654 i = this.$container.parents().filter(b.hasScroll) 2655 i.each(function () { 2656 a(this).data("select2-scroll-position", { 2657 x: a(this).scrollLeft(), 2658 y: a(this).scrollTop(), 2659 }) 2660 }), 2661 i.on(f, function (b) { 2662 var c = a(this).data("select2-scroll-position") 2663 a(this).scrollTop(c.y) 2664 }), 2665 a(window).on(f + " " + g + " " + h, function (a) { 2666 e._positionDropdown(), e._resizeDropdown() 2667 }) 2668 }), 2669 (c.prototype._detachPositioningHandler = function (c, d) { 2670 var e = "scroll.select2." + d.id, 2671 f = "resize.select2." + d.id, 2672 g = "orientationchange.select2." + d.id, 2673 h = this.$container.parents().filter(b.hasScroll) 2674 h.off(e), a(window).off(e + " " + f + " " + g) 2675 }), 2676 (c.prototype._positionDropdown = function () { 2677 var b = a(window), 2678 c = this.$dropdown.hasClass("select2-dropdown--above"), 2679 d = this.$dropdown.hasClass("select2-dropdown--below"), 2680 e = null, 2681 f = this.$container.offset() 2682 f.bottom = f.top + this.$container.outerHeight(!1) 2683 var g = { height: this.$container.outerHeight(!1) } 2684 ;(g.top = f.top), (g.bottom = f.top + g.height) 2685 var h = { height: this.$dropdown.outerHeight(!1) }, 2686 i = { top: b.scrollTop(), bottom: b.scrollTop() + b.he
2686ight() }, 2687 j = i.top < f.top - h.height, 2688 k = i.bottom > f.bottom + h.height, 2689 l = { left: f.left, top: g.bottom }, 2690 m = this.$dropdownParent 2691 "static" === m.css("position") && (m = m.offsetParent()) 2692 var n = m.offset() 2693 ;(l.top -= n.top), 2694 (l.left -= n.left), 2695 c || d || (e = "below"), 2696 k || !j || c ? !j && k && c && (e = "below") : (e = "above"), 2697 ("above" == e || (c && "below" !== e)) && (l.top = g.top - n.top - h.height), 2698 null != e && 2699 (this.$dropdown 2700 .removeClass("select2-dropdown--below select2-dropdown--above") 2701 .addClass("select2-dropdown--" + e), 2702 this.$container 2703 .removeClass("select2-container--below select2-container--above") 2704 .addClass("select2-container--" + e)), 2705 this.$dropdownContainer.css(l) 2706 }), 2707 (c.prototype._resizeDropdown = function () { 2708 var a = { width: this.$container.outerWidth(!1) + "px" } 2709 this.options.get("dropdownAutoWidth") && 2710 ((a.minWidth = a.width), (a.position = "relative"), (a.width = "auto")), 2711 this.$dropdown.css(a) 2712 }), 2713 (c.prototype._showDropdown = function (a) { 2714 this.$dropdownContainer.appendTo(this.$dropdownParent), 2715 this._positionDropdown(), 2716 this._resizeDropdown() 2717 }), 2718 c 2719 ) 2720 }), 2721 b.define("select2/dropdown/minimumResultsForSearch", [], function () { 2722 function a(b) { 2723 for (var c = 0, d = 0; d < b.length; d++) { 2724 var e = b[d] 2725 e.children ? (c += a(e.children)) : c++ 2726 } 2727 return c 2728 } 2729 function b(a, b, c, d) { 2730 ;(this.minimumResultsForSearch = c.get("minimumResultsForSearch")), 2731 this.minimumResultsForSearch < 0 && (this.minimumResultsForSearch = 1 / 0), 2732 a.call(this, b, c, d) 2733 } 2734 return ( 2735 (b.prototype.showSearch = function (b, c) { 2736 return a(c.data.results) < this.minimumResultsForSearch ? !1 : b.call(this, c) 2737 }), 2738 b 2739 ) 2740 }), 2741 b.define("select2/dropdown/selectOnClose", [], function () { 2742 function a() {} 2743 return ( 2744 (a.prototype.bind = function (a, b, c) { 2745 var d = this 2746 a.call(this, b, c), 2747 b.on("close", function (a) { 2748 d._handleSelectOnClose(a) 2749 }) 2750 }), 2751 (a.prototype._handleSelectOnClose = function (a, b) { 2752 if (b && null != b.originalSelect2Event) { 2753 var c = b.originalSelect2Event 2754 if ("select" === c._type || "unselect" === c._type) return 2755 } 2756 var d = this.getHighlightedResults() 2757 if (!(d.length < 1)) { 2758 var e = d.data("data") 2759 ;(null != e.element && e.element.selected) || 2760 (null == e.element && e.selected) || 2761 this.trigger("select", { data: e }) 2762 } 2763 }), 2764 a 2765 ) 2766 }), 2767 b.define("select2/dropdown/closeOnSelect", [], function () { 2768 function a() {} 2769 return ( 2770 (a.prototype.bind = function (a, b, c) { 2771 var d = this 2772 a.call(this, b, c), 2773 b.on("select", function (a) { 2774 d._selectTriggered(a) 2775 }), 2776 b.on("unselect", function (a) { 2777 d._selectTriggered(a) 2778 }) 2779 }), 2780 (a.prototype._selectTriggered = function (a, b) { 2781 var c = b.originalEvent 2782 ;(c && c.ctrlKey) || 2783 this.trigger("close", { 2784 originalEvent: c, 2785 originalSelect2Event: b, 2786 }) 2787 }), 2788 a 2789 ) 2790 }), 2791 b.define("select2/i18n/en", [], function () { 2792 return { 2793 errorLoading: function () { 2794 return "The results could not be loaded." 2795 }, 2796 inputTooLong: function (a) { 2797 var b = a.input.length - a.maximum, 2798 c = "Please delete " + b + " character" 2799 return 1 != b && (c += "s"), c 2800 }, 2801 inputTooShort: function (a) { 2802 var b = a.minimum - a.input.length, 2803 c = "Please enter " + b + " or more characters" 2804 return c 2805 }, 2806 loadingMore: function () { 2807 return "Loading more resultsâ¦" 2808 }, 2809 maximumSelected: function (a) { 2810 var b = "You can only select " + a.maximum + " item" 2811 return 1 != a.maximum && (b += "s"), b 2812 }, 2813 noResults: function () { 2814 return "No results found" 2815 }, 2816 searching: function () { 2817 return "Searchingâ¦" 2818 }, 2819 } 2820 }), 2821 b.define( 2822 "select2/defaults", 2823 [ 2824 "jquery", 2825 "require", 2826 "./results", 2827 "./selection/single", 2828 "./selection/multiple", 2829 "./selection/placeholder", 2830 "./selection/allowClear", 2831 "./selection/search", 2832 "./selection/eventRelay", 2833 "./utils", 2834 "./translation", 2835 "./diacritics", 2836 "./data/select", 2837 "./data/array", 2838 "./data/ajax", 2839 "./data/tags", 2840 "./data/tokenizer", 2841 "./data/minimumInputLength", 2842 "./data/maximumInputLength", 2843 "./data/maximumSelectionLength", 2844 "./dropdown", 2845 "./dropdown/search", 2846 "./dropdown/hidePlaceholder", 2847 "./dropdown/infiniteScroll", 2848 "./dropdown/attachBody", 2849 "./dropdown/minimumResultsForSearch", 2850 "./dropdown/selectOnClose", 2851 "./dropdown/closeOnSelect", 2852 "./i18n/en", 2853 ], 2854 function ( 2855 a, 2856 b, 2857 c, 2858 d, 2859 e, 2860 f, 2861 g, 2862 h, 2863 i, 2864 j, 2865 k, 2866 l, 2867 m, 2868 n, 2869 o, 2870 p, 2871 q, 2872 r, 2873 s, 2874 t, 2875 u, 2876 v, 2877 w, 2878 x, 2879 y, 2880 z, 2881 A, 2882 B, 2883 C, 2884 ) { 2885 function D() { 2886 this.reset() 2887 } 2888 ;(D.prototype.apply = function (l) { 2889 if (((l = a.extend(!0, {}, this.defaults, l)), null == l.dataAdapter)) { 2890 if ( 2891 (null != l.ajax 2892 ? (l.dataAdapter = o) 2893 : null != l.data 2894 ? (l.dataAdapter = n) 2895 : (l.dataAdapter = m), 2896 l.minimumInputLength > 0 && (l.dataAdapter = j.Decorate(l.dataAdapter, r)), 2897 l.maximumInputLength > 0 && (l.dataAdapter = j.Decorate(l.dataAdapter, s)), 2898 l.maximumSelectionLength > 0 && (l.dataAdapter = j.Decorate(l.dataAdapter, t)), 2899 l.tags && (l.dataAdapter = j.Decorate(l.dataAdapter, p)), 2900 (null != l.tokenSeparators || null != l.tokenizer) && 2901 (l.dataAdapter = j.Decorate(l.dataAdapter, q)), 2902 null != l.query) 2903 ) { 2904 var C = b(l.amdBase + "compat/query")
2905 l.dataAdapter = j.Decorate(l.dataAdapter, C) 2906 } 2907 if (null != l.initSelection) { 2908 var D = b(l.amdBase + "compat/initSelection") 2909 l.dataAdapter = j.Decorate(l.dataAdapter, D) 2910 } 2911 } 2912 if ( 2913 (null == l.resultsAdapter && 2914 ((l.resultsAdapter = c), 2915 null != l.ajax && (l.resultsAdapter = j.Decorate(l.resultsAdapter, x)), 2916 null != l.placeholder && (l.resultsAdapter = j.Decorate(l.resultsAdapter, w)), 2917 l.selectOnClose && (l.resultsAdapter = j.Decorate(l.resultsAdapter, A))), 2918 null == l.dropdownAdapter) 2919 ) { 2920 if (l.multiple) l.dropdownAdapter = u 2921 else { 2922 var E = j.Decorate(u, v) 2923 l.dropdownAdapter = E 2924 } 2925 if ( 2926 (0 !== l.minimumResultsForSearch && 2927 (l.dropdownAdapter = j.Decorate(l.dropdownAdapter, z)), 2928 l.closeOnSelect && (l.dropdownAdapter = j.Decorate(l.dropdownAdapter, B)), 2929 null != l.dropdownCssClass || 2930 null != l.dropdownCss || 2931 null != l.adaptDropdownCssClass) 2932 ) { 2933 var F = b(l.amdBase + "compat/dropdownCss") 2934 l.dropdownAdapter = j.Decorate(l.dropdownAdapter, F) 2935 } 2936 l.dropdownAdapter = j.Decorate(l.dropdownAdapter, y) 2937 } 2938 if (null == l.selectionAdapter) { 2939 if ( 2940 (l.multiple ? (l.selectionAdapter = e) : (l.selectionAdapter = d), 2941 null != l.placeholder && (l.selectionAdapter = j.Decorate(l.selectionAdapter, f)), 2942 l.allowClear && (l.selectionAdapter = j.Decorate(l.selectionAdapter, g)), 2943 l.multiple && (l.selectionAdapter = j.Decorate(l.selectionAdapter, h)), 2944 null != l.containerCssClass || 2945 null != l.containerCss || 2946 null != l.adaptContainerCssClass) 2947 ) { 2948 var G = b(l.amdBase + "compat/containerCss") 2949 l.selectionAdapter = j.Decorate(l.selectionAdapter, G) 2950 } 2951 l.selectionAdapter = j.Decorate(l.selectionAdapter, i) 2952 } 2953 if ("string" == typeof l.language) 2954 if (l.language.indexOf("-") > 0) { 2955 var H = l.language.split("-"), 2956 I = H[0] 2957 l.language = [l.language, I] 2958 } else l.language = [l.language] 2959 if (a.isArray(l.language)) { 2960 var J = new k() 2961 l.language.push("en") 2962 for (var K = l.language, L = 0; L < K.length; L++) { 2963 var M = K[L], 2964 N = {} 2965 try { 2966 N = k.loadPath(M) 2967 } catch (O) { 2968 try { 2969 ;(M = this.defaults.amdLanguageBase + M), (N = k.loadPath(M)) 2970 } catch (P) { 2971 l.debug && 2972 window.console && 2973 console.warn && 2974 console.warn( 2975 'Select2: The language file for "' + 2976 M + 2977 '" could not be automatically loaded. A fallback will be used instead.', 2978 ) 2979 continue 2980 } 2981 } 2982 J.extend(N) 2983 } 2984 l.translations = J 2985 } else { 2986 var Q = k.loadPath(this.defaults.amdLanguageBase + "en"), 2987 R = new k(l.language) 2988 R.extend(Q), (l.translations = R) 2989 } 2990 return l 2991 }), 2992 (D.prototype.reset = function () { 2993 function b(a) { 2994 function b(a) { 2995 return l[a] || a 2996 }
2997 return a.replace(/[^\u0000-\u007E]/g, b) 2998 } 2999 function c(d, e) { 3000 if ("" === a.trim(d.term)) return e 3001 if (e.children && e.children.length > 0) { 3002 for (var f = a.extend(!0, {}, e), g = e.children.length - 1; g >= 0; g--) { 3003 var h = e.children[g], 3004 i = c(d, h) 3005 null == i && f.children.splice(g, 1) 3006 } 3007 return f.children.length > 0 ? f : c(d, f) 3008 } 3009 var j = b(e.text).toUpperCase(), 3010 k = b(d.term).toUpperCase() 3011 return j.indexOf(k) > -1 ? e : null 3012 } 3013 this.defaults = { 3014 amdBase: "./", 3015 amdLanguageBase: "./i18n/", 3016 closeOnSelect: !0, 3017 debug: !1, 3018 dropdownAutoWidth: !1, 3019 escapeMarkup: j.escapeMarkup, 3020 language: C, 3021 matcher: c, 3022 minimumInputLength: 0, 3023 maximumInputLength: 0, 3024 maximumSelectionLength: 0, 3025 minimumResultsForSearch: 0, 3026 selectOnClose: !1, 3027 sorter: function (a) { 3028 return a 3029 }, 3030 templateResult: function (a) { 3031 return a.text 3032 }, 3033 templateSelection: function (a) { 3034 return a.text 3035 }, 3036 theme: "default", 3037 width: "resolve", 3038 } 3039 }), 3040 (D.prototype.set = function (b, c) { 3041 var d = a.camelCase(b), 3042 e = {} 3043 e[d] = c 3044 var f = j._convertData(e) 3045 a.extend(this.defaults, f) 3046 }) 3047 var E = new D() 3048 return E 3049 }, 3050 ), 3051 b.define( 3052 "select2/options", 3053 ["require", "jquery", "./defaults", "./utils"], 3054 function (a, b, c, d) { 3055 function e(b, e) { 3056 if ( 3057 ((this.options = b), 3058 null != e && this.fromElement(e), 3059 (this.options = c.apply(this.options)), 3060 e && e.is("input")) 3061 ) { 3062 var f = a(this.get("amdBase") + "compat/inputData") 3063 this.options.dataAdapter = d.Decorate(this.options.dataAdapter, f) 3064 } 3065 } 3066 return ( 3067 (e.prototype.fromElement = function (a) { 3068 var c = ["select2"] 3069 null == this.options.multiple && (this.options.multiple = a.prop("multiple")), 3070 null == this.options.disabled && (this.options.disabled = a.prop("disabled")), 3071 null == this.options.language && 3072 (a.prop("lang") 3073 ? (this.options.language = a.prop("lang").toLowerCase()) 3074 : a.closest("[lang]").prop("lang") && 3075 (this.options.language = a.closest("[lang]").prop("lang"))), 3076 null == this.options.dir && 3077 (a.prop("dir") 3078 ? (this.options.dir = a.prop("dir")) 3079 : a.closest("[dir]").prop("dir") 3080 ? (this.options.dir = a.closest("[dir]").prop("dir")) 3081 : (this.options.dir = "ltr")), 3082 a.prop("disabled", this.options.disabled), 3083 a.prop("multiple", this.options.multiple), 3084 a.data("select2Tags") && 3085 (this.options.debug && 3086 window.console && 3087 console.warn && 3088 console.warn( 3089 '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.', 3090 ), 3091 a.data("data", a.data("select2Tags")), 3092 a.data("tags", !0)), 3093 a.data("ajaxUrl") && 3094 (this.options.debug && 3095 window.console && 3096 console.warn && 3097 console.warn( 3098 "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.", 3099 ), 3100 a.attr("ajax--url", a.data("ajaxUrl")), 3101 a.data("ajax--url", a.data("ajaxUrl"))) 3102 var e = {} 3103 e = 3104 b.fn.jquery && "1." == b.fn.jquery.substr(0, 2) && a[0].dataset 3105 ? b.extend(!0, {}, a[0].dataset, a.data()) 3106 : a.data() 3107 var f = b.extend(!0, {}, e) 3108 f = d._convertData(f) 3109 for (var g in f) 3110 b.inArray(g, c) > -1 || 3111 (b.isPlainObject(this.options[g]) 3112 ? b.extend(this.options[g], f[g]) 3113 : (this.options[g] = f[g])) 3114 return this 3115 }), 3116 (e.prototype.get = function (a) { 3117 return this.options[a] 3118 }), 3119 (e.prototype.set = function (a, b) { 3120 this.options[a] = b 3121 }), 3122 e 3123 ) 3124 }, 3125 ), 3126 b.define( 3127 "select2/core", 3128 ["jquery", "./options", "./utils", "./keys"], 3129 function (a, b, c, d) { 3130 var e = function (a, c) { 3131 null != a.data("select2") && a.data("select2").destroy(), 3132 (this.$element = a), 3133 (this.id = this._generateId(a)), 3134 (c = c || {}), 3135 (this.options = new b(c, a)), 3136 e.__super__.constructor.call(this) 3137 var d = a.attr("tabindex") || 0 3138 a.data("old-tabindex", d), a.attr("tabindex", "-1") 3139 var f = this.options.get("dataAdapter") 3140 this.dataAdapter = new f(a, this.options) 3141 var g = this.render() 3142 this._placeContainer(g) 3143 var h = this.options.get("selectionAdapter") 3144 ;(this.selection = new h(a, this.options)), 3145 (this.$selection = this.selection.render()), 3146 this.selection.position(this.$selection, g) 3147 var i = this.options.get("dropdownAdapter") 3148 ;(this.dropdown = new i(a, this.options)), 3149 (this.$dropdown = this.dropdown.render()), 3150 this.dropdown.position(this.$dropdown, g) 3151 var j = this.options.get("resultsAdapter") 3152 ;(this.results = new j(a, this.options, this.dataAdapter)), 3153 (this.$results = this.results.render()), 3154 this.results.position(this.$results, this.$dropdown) 3155 var k = this 3156 this._bindAdapters(), 3157 this._registerDomEvents(), 3158 this._registerDataEvents(), 3159 this._registerSelectionEvents(), 3160 this._registerDropdownEvents(), 3161 this._registerResultsEvents(), 3162 this._registerEvents(), 3163 this.dataAdapter.current(function (a) { 3164 k.trigger("selection:update", { data: a }) 3165 }), 3166 a.addClass("select2-hidden-accessible"), 3167 a.attr("aria-hidden", "true"), 3168 this._syncAttributes(), 3169 a.data("select2", this) 3170 } 3171 return ( 3172 c.Extend(e, c.Observable), 3173 (e.prototype._generateId = function (a) { 3174 var b = "" 3175 return ( 3176 (b = 3177 null != a.attr("id") 3178 ? a.attr("id") 3179 : null != a.attr("name") 3180 ? a.attr("name") + "-" + c.generateChars(2) 3181 : c.generateChars(4)), 3182 (b = b.replace(/(:|\.|\[|\]|,)/g, "")), 3183 (b = "select2-" + b) 3184 ) 3185 }), 3186 (e.prototype._placeContainer = function (a) { 3187 a.insertAfter(this.$element) 3188 var b = this._resolveWidth(this.$element, this.options.get("width")) 3189 null != b && a.css("width", b) 3190 }), 3191 (e.prototype._resolveWidth = function (a, b) { 3192 var c = /^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i 3193 if ("resolve" == b) { 3194 var d = this._resolveWidth(a, "style") 3195 return null != d ? d : this._resolveWidth(a, "element") 3196 } 3197 if ("element" == b) { 3198 var e = a.outerWidth(!1) 3199 return 0 >= e ? "auto" : e + "px" 3200 } 3201 if ("style" == b) { 3202 var f = a.attr("style") 3203 if ("string" != typeof f) return null 3204 for (var g = f.split(";"), h = 0, i = g.length; i > h; h += 1) { 3205 var j = g[h].replace(/\s/g, ""), 3206 k = j.match(c) 3207 if (null !== k && k.length >= 1) return k[1] 3208 } 3209 return null 3210 } 3211 return b 3212 }), 3213 (e.prototype._bindAdapters = function () { 3214 this.dataAdapter.bind(this, this.$container), 3215 this.selection.bind(this, this.$container), 3216 this.dropdown.bind(this, this.$container), 3217 this.results.bind(this, this.$container) 3218 }), 3219 (e.prototype._registerDomEvents = function () { 3220 var b = this 3221 this.$element.on("change.select2", function () { 3222 b.dataAdapter.current(function (a) { 3223 b.trigger("selection:update", { data: a }) 3224 }) 3225 }), 3226 this.$element.on("focus.select2", function (a) { 3227 b.trigger("focus", a) 3228 }), 3229 (this._syncA = c.bind(this._syncAttributes, this)), 3230 (this._syncS = c.bind(this._syncSubtree, this)), 3231 this.$element[0].attachEvent && 3232 this.$element[0].attachEvent("onpropertychange", this._syncA) 3233 var d = 3234 window.MutationObserver || 3235 window.WebKitMutationObserver || 3236 window.MozMutationObserver 3237 null != d 3238 ? ((this._observer = new d(function (c) { 3239 a.each(c, b._syncA), a.each(c, b._syncS) 3240 })), 3241 this._observer.observe(this.$element[0], { 3242 attributes: !0, 3243 childList: !0, 3244 subtree: !1, 3245 })) 3246 : this.$element[0].addEventListener && 3247 (this.$element[0].addEventListener("DOMAttrModified", b._syncA, !1), 3248 this.$element[0].addEventListener("DOMNodeInserted", b._syncS, !1), 3249 this.$element[0].addEventListener("DOMNodeRemoved", b._syncS, !1)) 3250 }), 3251 (e.prototype._registerDataEvents = function () { 3252 var a = this 3253 this.dataAdapter.on("*", function (b, c) { 3254 a.trigger(b, c) 3255 }) 3256 }), 3257 (e.prototype._registerSelectionEvents = function () { 3258 var b = this,
3259 c = ["toggle", "focus"] 3260 this.selection.on("toggle", function () { 3261 b.toggleDropdown() 3262 }), 3263 this.selection.on("focus", function (a) { 3264 b.focus(a) 3265 }), 3266 this.selection.on("*", function (d, e) { 3267 ;-1 === a.inArray(d, c) && b.trigger(d, e) 3268 }) 3269 }), 3270 (e.prototype._registerDropdownEvents = function () { 3271 var a = this 3272 this.dropdown.on("*", function (b, c) { 3273 a.trigger(b, c) 3274 }) 3275 }), 3276 (e.prototype._registerResultsEvents = function () { 3277 var a = this 3278 this.results.on("*", function (b, c) { 3279 a.trigger(b, c) 3280 }) 3281 }), 3282 (e.prototype._registerEvents = function () { 3283 var a = this 3284 this.on("open", function () { 3285 a.$container.addClass("select2-container--open") 3286 }), 3287 this.on("close", function () { 3288 a.$container.removeClass("select2-container--open") 3289 }), 3290 this.on("enable", function () { 3291 a.$container.removeClass("select2-container--disabled") 3292 }), 3293 this.on("disable", function () { 3294 a.$container.addClass("select2-container--disabled") 3295 }), 3296 this.on("blur", function () { 3297 a.$container.removeClass("select2-container--focus") 3298 }), 3299 this.on("query", function (b) { 3300 a.isOpen() || a.trigger("open", {}), 3301 this.dataAdapter.query(b, function (c) { 3302 a.trigger("results:all", { data: c, query: b }) 3303 }) 3304 }), 3305 this.on("query:append", function (b) { 3306 this.dataAdapter.query(b, function (c) { 3307 a.trigger("results:append", { data: c, query: b }) 3308 }) 3309 }), 3310 this.on("keypress", function (b) { 3311 var c = b.which 3312 if (c === d.ENTER && (b.ctrlKey || b.metaKey)) a.close() 3313 if (c === d.ESC && !a.isOpen()) a.close() 3314 3315 a.isOpen() 3316 ? c === d.ESC || c === d.TAB || (c === d.UP && b.altKey) 3317 ? (a.close(), b.preventDefault()) 3318 : c === d.ENTER && !b.ctrlKey && !b.metaKey 3319 ? (a.trigger("results:select", {}), b.preventDefault()) 3320 : c === d.SPACE && b.ctrlKey 3321 ? (a.trigger("results:toggle", {}), b.preventDefault()) 3322 : c === d.UP 3323 ? (a.trigger("results:previous", {}), b.preventDefault()) 3324 : c === d.DOWN && (a.trigger("results:next", {}), b.preventDefault()) 3325 : (c === (d.ENTER && !b.ctrlKey && !b.metaKey) || 3326 c === d.SPACE || 3327 (c === d.DOWN && b.altKey)) && 3328 (a.open(), b.preventDefault()) 3329 }) 3330 }), 3331 (e.prototype._syncAttributes = function () { 3332 this.options.set("disabled", this.$element.prop("disabled")), 3333 this.options.get("disabled") 3334 ? (this.isOpen() && this.close(), this.trigger("disable", {})) 3335 : this.trigger("enable", {}) 3336 }), 3337 (e.prototype._syncSubtree = function (a, b) { 3338 var c = !1, 3339 d = this 3340 if ( 3341 !a || 3342 !a.target || 3343 "OPTION" === a.target.nodeName || 3344 "OPTGROUP" === a.target.nodeName 3345 ) { 3346 if (b) 3347 if (b.addedNodes && b.addedNodes.length > 0) 3348 for (var e = 0; e < b.addedNodes.length; e++) { 3349 var f = b.addedNodes[e] 3350 f.selected && (c = !0) 3351 } 3352 else b.removedNodes && b.removedNodes.length > 0 && (c = !0) 3353 else c = !0 3354 c && 3355 this.dataAdapter.current(function (a) { 3356 d.trigger("selection:update", { data: a }) 3357 }) 3358 } 3359 }), 3360 (e.prototype.trigger = function (a, b) { 3361 var c = e.__super__.trigger, 3362 d = { 3363 open: "opening", 3364 close: "closing", 3365 select: "selecting", 3366 unselect: "unselecting", 3367 } 3368 if ((void 0 === b && (b = {}), a in d)) { 3369 var f = d[a], 3370 g = { prevented: !1, name: a, args: b } 3371 if ((c.call(this, f, g), g.prevented)) return void (b.prevented = !0) 3372 } 3373 c.call(this, a, b) 3374 }), 3375 (e.prototype.toggleDropdown = function () { 3376 this.options.get("disabled") || (this.isOpen() ? this.close() : this.open()) 3377 }), 3378 (e.prototype.open = function () { 3379 this.isOpen() || this.trigger("query", {}) 3380 }), 3381 (e.prototype.close = function () { 3382 this.isOpen() && this.trigger("close", {}) 3383 }), 3384 (e.prototype.isOpen = function () { 3385 return this.$container.hasClass("select2-container--open") 3386 }), 3387 (e.prototype.hasFocus = function () { 3388 return this.$container.hasClass("select2-container--focus") 3389 }),
3390 (e.prototype.focus = function (a) { 3391 this.hasFocus() || 3392 (this.$container.addClass("select2-container--focus"), this.trigger("focus", {})) 3393 }), 3394 (e.prototype.enable = function (a) { 3395 this.options.get("debug") && 3396 window.console && 3397 console.warn && 3398 console.warn( 3399 'Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.', 3400 ), 3401 (null == a || 0 === a.length) && (a = [!0]) 3402 var b = !a[0] 3403 this.$element.prop("disabled", b) 3404 }), 3405 (e.prototype.data = function () { 3406 this.options.get("debug") && 3407 arguments.length > 0 && 3408 window.console && 3409 console.warn && 3410 console.warn( 3411 'Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.', 3412 ) 3413 var a = [] 3414 return ( 3415 this.dataAdapter.current(function (b) { 3416 a = b 3417 }), 3418 a 3419 ) 3420 }), 3421 (e.prototype.val = function (b) { 3422 if ( 3423 (this.options.get("debug") && 3424 window.console && 3425 console.warn && 3426 console.warn( 3427 'Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.', 3428 ), 3429 null == b || 0 === b.length) 3430 ) 3431 return this.$element.val() 3432 var c = b[0] 3433 a.isArray(c) && 3434 (c = a.map(c, function (a) { 3435 return a.toString() 3436 })), 3437 this.$element.val(c).trigger("change") 3438 }), 3439 (e.prototype.destroy = function () { 3440 this.$container.remove(), 3441 this.$element[0].detachEvent && 3442 this.$element[0].detachEvent("onpropertychange", this._syncA), 3443 null != this._observer 3444 ? (this._observer.disconnect(), (this._observer = null)) 3445 : this.$element[0].removeEventListener && 3446 (this.$element[0].removeEventListener("DOMAttrModified", this._syncA, !1), 3447 this.$element[0].removeEventListener("DOMNodeInserted", this._syncS, !1), 3448 this.$element[0].removeEventListener("DOMNodeRemoved", this._syncS, !1)), 3449 (this._syncA = null), 3450 (this._syncS = null), 3451 this.$element.off(".select2"), 3452 this.$element.attr("tabindex", this.$element.data("old-tabindex")), 3453 this.$element.removeClass("select2-hidden-accessible"), 3454 this.$element.attr("aria-hidden", "false"), 3455 this.$element.removeData("select2"), 3456 this.dataAdapter.destroy(), 3457 this.selection.destroy(), 3458 this.dropdown.destroy(), 3459 this.results.destroy(), 3460 (this.dataAdapter = null), 3461 (this.selection = null), 3462 (this.dropdown = null),
3463 (this.results = null) 3464 }), 3465 (e.prototype.render = function () { 3466 var b = a( 3467 '<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>', 3468 ) 3469 return ( 3470 b.attr("dir", this.options.get("dir")), 3471 (this.$container = b), 3472 this.$container.addClass("select2-container--" + this.options.get("theme")), 3473 b.data("element", this.$element), 3474 b 3475 ) 3476 }), 3477 e 3478 ) 3479 }, 3480 ), 3481 b.define("select2/compat/utils", ["jquery"], function (a) { 3482 function b(b, c, d) { 3483 var e, 3484 f, 3485 g = [] 3486 ;(e = a.trim(b.attr("class"))), 3487 e && 3488 ((e = "" + e), 3489 a(e.split(/\s+/)).each(function () { 3490 0 === this.indexOf("select2-") && g.push(this) 3491 })), 3492 (e = a.trim(c.attr("class"))), 3493 e && 3494 ((e = "" + e), 3495 a(e.split(/\s+/)).each(function () { 3496 0 !== this.indexOf("select2-") && ((f = d(this)), null != f && g.push(f)) 3497 })), 3498 b.attr("class", g.join(" ")) 3499 } 3500 return { syncCssClasses: b } 3501 }), 3502 b.define("select2/compat/containerCss", ["jquery", "./utils"], function (a, b) { 3503 function c(a) { 3504 return null 3505 } 3506 function d() {} 3507 return ( 3508 (d.prototype.render = function (d) { 3509 var e = d.call(this), 3510 f = this.options.get("containerCssClass") || "" 3511 a.isFunction(f) && (f = f(this.$element)) 3512 var g = this.options.get("adaptContainerCssClass") 3513 if (((g = g || c), -1 !== f.indexOf(":all:"))) { 3514 f = f.replace(":all:", "") 3515 var h = g 3516 g = function (a) { 3517 var b = h(a) 3518 return null != b ? b + " " + a : a 3519 } 3520 } 3521 var i = this.options.get("containerCss") || {} 3522 return ( 3523 a.isFunction(i) && (i = i(this.$element)), 3524 b.syncCssClasses(e, this.$element, g), 3525 e.css(i), 3526 e.addClass(f), 3527 e 3528 ) 3529 }), 3530 d 3531 ) 3532 }), 3533 b.define("select2/compat/dropdownCss", ["jquery", "./utils"], function (a, b) { 3534 function c(a) { 3535 return null 3536 } 3537 function d() {} 3538 return ( 3539 (d.prototype.render = function (d) { 3540 var e = d.call(this), 3541 f = this.options.get("dropdownCssClass") || "" 3542 a.isFunction(f) && (f = f(this.$element)) 3543 var g = this.options.get("adaptDropdownCssClass") 3544 if (((g = g || c), -1 !== f.indexOf(":all:"))) { 3545 f = f.replace(":all:", "") 3546 var h = g 3547 g = function (a) { 3548 var b = h(a) 3549 return null != b ? b + " " + a : a 3550 } 3551 } 3552 var i = this.options.get("dropdownCss") || {} 3553 return ( 3554 a.isFunction(i) && (i = i(this.$element)), 3555 b.syncCssClasses(e, this.$element, g), 3556 e.css(i), 3557 e.addClass(f), 3558 e 3559 ) 3560 }), 3561 d 3562 ) 3563 }), 3564 b.define("select2/compat/initSelection", ["jquery"], function (a) { 3565 function b(a, b, c) { 3566 c.get("debug") && 3567 window.console && 3568 console.warn && 3569 console.warn( 3570 "Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2", 3571 ), 3572 (this.initSelection = c.get("initSelection")), 3573 (this._isInitialized = !1), 3574 a.call(this, b, c) 3575 } 3576 return ( 3577 (b.prototype.current = function (b, c) { 3578 var d = this 3579 return this._isInitialized 3580 ? void b.call(this, c) 3581 : void this.initSelection.call(null, this.$element, function (b) { 3582 ;(d._isInitialized = !0), a.isArray(b) || (b = [b]), c(b) 3583 }) 3584 }), 3585 b 3586 ) 3587 }), 3588 b.define("select2/compat/inputData", ["jquery"], function (a) { 3589 function b(a, b, c) { 3590 ;(this._currentData = []), 3591 (this._valueSeparator = c.get("valueSeparator") || ","), 3592 "hidden" === b.prop("type") && 3593 c.get("debug") && 3594 console && 3595 console.warn && 3596 console.warn( 3597 "Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead.", 3598 ), 3599 a.call(this, b, c) 3600 } 3601 return ( 3602 (b.prototype.current = function (b, c) { 3603 function d(b, c) { 3604 var e = [] 3605 return ( 3606 b.selected || -1 !== a.inArray(b.id, c) 3607 ? ((b.selected = !0), e.push(b)) 3608 : (b.selected = !1), 3609 b.children && e.push.apply(e, d(b.children, c)), 3610 e 3611 ) 3612 } 3613 for (var e = [], f = 0; f < this._currentData.length; f++) { 3614 var g = this._currentData[f] 3615 e.push.apply(e, d(g, this.$element.val().split(this._valueSeparator))) 3616 } 3617 c(e) 3618 }), 3619 (b.prototype.select = function (b, c) { 3620 if (this.options.get("multiple")) { 3621 var d = this.$element.val() 3622 ;(d += this._valueSeparator + c.id), 3623 this.$element.val(d), 3624 this.$element.trigger("change") 3625 } else 3626 this.current(function (b) { 3627 a.map(b, function (a) { 3628 a.selected = !1 3629 }) 3630 }), 3631 this.$element.val(c.id), 3632 this.$element.trigger("change") 3633 }), 3634 (b.prototype.unselect = function (a, b) { 3635 var c = this 3636 ;(b.selected = !1), 3637 this.current(function (a) { 3638 for (var d = [], e = 0; e < a.length; e++) { 3639 var f = a[e] 3640 b.id != f.id && d.push(f.id) 3641 } 3642 c.$element.val(d.join(c._valueSeparator)), c.$element.trigger("change") 3643 }) 3644 }), 3645 (b.prototype.query = function (a, b, c) { 3646 for (var d = [], e = 0; e < this._currentData.length; e++) { 3647 var f = this._currentData[e], 3648 g = this.matches(b, f) 3649 null !== g && d.push(g) 3650 } 3651 c({ results: d }) 3652 }), 3653 (b.prototype.addOptions = function (b, c) { 3654 var d = a.map(c, function (b) { 3655 return a.data(b[0], "data") 3656 }) 3657 this._currentData.push.apply(this._currentData, d) 3658 }), 3659 b 3660 ) 3661 }), 3662 b.define("select2/compat/matcher", ["jquery"], function (a) { 3663 function b(b) { 3664 function c(c, d) { 3665 var e = a.extend(!0, {}, d) 3666 if (null == c.term || "" === a.trim(c.term)) return e 3667 if (d.children) { 3668 for (var f = d.children.length - 1; f >= 0;
3668 f--) { 3669 var g = d.children[f], 3670 h = b(c.term, g.text, g) 3671 h || e.children.splice(f, 1) 3672 } 3673 if (e.children.length > 0) return e 3674 } 3675 return b(c.term, d.text, d) ? e : null 3676 } 3677 return c 3678 } 3679 return b 3680 }), 3681 b.define("select2/compat/query", [], function () { 3682 function a(a, b, c) { 3683 c.get("debug") && 3684 window.console && 3685 console.warn && 3686 console.warn( 3687 "Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2.", 3688 ), 3689 a.call(this, b, c) 3690 } 3691 return ( 3692 (a.prototype.query = function (a, b, c) { 3693 b.callback = c 3694 var d = this.options.get("query") 3695 d.call(null, b) 3696 }), 3697 a 3698 ) 3699 }), 3700 b.define("select2/dropdown/attachContainer", [], function () { 3701 function a(a, b, c) { 3702 a.call(this, b, c) 3703 } 3704 return ( 3705 (a.prototype.position = function (a, b, c) { 3706 var d = c.find(".dropdown-wrapper") 3707 d.append(b), 3708 b.addClass("select2-dropdown--below"), 3709 c.addClass("select2-container--below") 3710 }), 3711 a 3712 ) 3713 }), 3714 b.define("select2/dropdown/stopPropagation", [], function () { 3715 function a() {} 3716 return ( 3717 (a.prototype.bind = function (a, b, c) { 3718 a.call(this, b, c) 3719 var d = [ 3720 "blur", 3721 "change", 3722 "click", 3723 "dblclick", 3724 "focus", 3725 "focusin", 3726 "focusout", 3727 "input", 3728 "keydown", 3729 "keyup", 3730 "keypress", 3731 "mousedown", 3732 "mouseenter", 3733 "mouseleave", 3734 "mousemove", 3735 "mouseover", 3736 "mouseup", 3737 "search", 3738 "touchend", 3739 "touchstart", 3740 ] 3741 this.$dropdown.on(d.join(" "), function (a) { 3742 a.stopPropagation() 3743 }) 3744 }), 3745 a 3746 ) 3747 }), 3748 b.define("select2/selection/stopPropagation", [], function () { 3749 function a() {} 3750 return ( 3751 (a.prototype.bind = function (a, b, c) { 3752 a.call(this, b, c) 3753 var d = [ 3754 "blur", 3755 "change", 3756 "click", 3757 "dblclick", 3758 "focus", 3759 "focusin", 3760 "focusout", 3761 "input", 3762 "keydown", 3763 "keyup", 3764 "keypress", 3765 "mousedown", 3766 "mouseenter", 3767 "mouseleave", 3768 "mousemove", 3769 "mouseover", 3770 "mouseup", 3771 "search", 3772 "touchend", 3773 "touchstart", 3774 ] 3775 this.$selection.on(d.join(" "), function (a) { 3776 a.stopPropagation() 3777 }) 3778 }), 3779 a 3780 ) 3781 }), 3782 (function (c) { 3783 "function" == typeof b.define && b.define.amd 3784 ? b.define("jquery-mousewheel", ["jquery"], c) 3785 : "object" == typeof exports 3786 ? (module.exports = c) 3787 : c(a) 3788 })(function (a) { 3789 function b(b) { 3790 var g = b || window.event, 3791 h = i.call(arguments, 1), 3792 j = 0, 3793 l = 0, 3794 m = 0, 3795 n = 0, 3796 o = 0, 3797 p = 0 3798 if ( 3799 ((b = a.event.fix(g)), 3800 (b.type = "mousewheel"), 3801 "detail" in g && (m = -1 * g.detail), 3802 "wheelDelta" in g && (m = g.wheelDelta), 3803 "wheelDeltaY" in g && (m = g.wheelDeltaY), 3804 "wheelDeltaX" in g && (l = -1 * g.wheelDeltaX), 3805 "axis" in g && g.axis === g.HORIZONTAL_AXIS && ((l = -1 * m), (m = 0)), 3806 (j = 0 === m ? l : m), 3807 "deltaY" in g && ((m = -1 * g.deltaY), (j = m)), 3808 "deltaX" in g && ((l = g.deltaX), 0 === m && (j = -1 * l)), 3809 0 !== m || 0 !== l) 3810 ) { 3811 if (1 === g.deltaMode) { 3812 var q = a.data(this, "mousewheel-line-height") 3813 ;(j *= q), (m *= q), (l *= q) 3814 } else if (2 === g.deltaMode) { 3815 var r = a.data(this, "mousewheel-page-height") 3816 ;(j *= r), (m *= r), (l *= r) 3817 } 3818 if ( 3819 ((n = Math.max(Math.abs(m), Math.abs(l))), 3820 (!f || f > n) && ((f = n), d(g, n) && (f /= 40)), 3821 d(g, n) && ((j /= 40), (l /= 40), (m /= 40)), 3822 (j = Math[j >= 1 ? "floor" : "ceil"](j / f)), 3823 (l = Math[l >= 1 ? "floor" : "ceil"](l / f)), 3824 (m = Math[m >= 1 ? "floor" : "ceil"](m / f)), 3825 k.settings.normalizeOffset && this.getBoundingClientRect) 3826 ) { 3827 var s = this.getBoundingClientRect() 3828 ;
3828(o = b.clientX - s.left), (p = b.clientY - s.top) 3829 } 3830 return ( 3831 (b.deltaX = l), 3832 (b.deltaY = m), 3833 (b.deltaFactor = f), 3834 (b.offsetX = o), 3835 (b.offsetY = p), 3836 (b.deltaMode = 0), 3837 h.unshift(b, j, l, m), 3838 e && clearTimeout(e), 3839 (e = setTimeout(c, 200)), 3840 (a.event.dispatch || a.event.handle).apply(this, h) 3841 ) 3842 } 3843 } 3844 function c() { 3845 f = null 3846 } 3847 function d(a, b) { 3848 return k.settings.adjustOldDeltas && "mousewheel" === a.type && b % 120 === 0 3849 } 3850 var e, 3851 f, 3852 g = ["wheel", "mousewheel", "DOMMouseScroll", "MozMousePixelScroll"], 3853 h = 3854 "onwheel" in document || document.documentMode >= 9 3855 ? ["wheel"] 3856 : ["mousewheel", "DomMouseScroll", "MozMousePixelScroll"], 3857 i = Array.prototype.slice 3858 if (a.event.fixHooks) 3859 for (var j = g.length; j; ) a.event.fixHooks[g[--j]] = a.event.mouseHooks 3860 var k = (a.event.special.mousewheel = { 3861 version: "3.1.12", 3862 setup: function () { 3863 if (this.addEventListener) 3864 for (var c = h.length; c; ) this.addEventListener(h[--c], b, !1) 3865 else this.onmousewheel = b 3866 a.data(this, "mousewheel-line-height", k.getLineHeight(this)), 3867 a.data(this, "mousewheel-page-height", k.getPageHeight(this)) 3868 }, 3869 teardown: function () { 3870 if (this.removeEventListener) 3871 for (var c = h.length; c; ) this.removeEventListener(h[--c], b, !1) 3872 else this.onmousewheel = null 3873 a.removeData(this, "mousewheel-line-height"), 3874 a.removeData(this, "mousewheel-page-height") 3875 }, 3876 getLineHeight: function (b) { 3877 var c = a(b), 3878 d = c["offsetParent" in a.fn ? "offsetParent" : "parent"]() 3879 return ( 3880 d.length || (d = a("body")), 3881 parseInt(d.css("fontSize"), 10) || parseInt(c.css("fontSize"), 10) || 16 3882 ) 3883 }, 3884 getPageHeight: function (b) { 3885 return a(b).height() 3886 }, 3887 settings: { adjustOldDeltas: !0, normalizeOffset: !0 }, 3888 }) 3889 a.fn.extend({ 3890 mousewheel: function (a) { 3891 return a ? this.bind("mousewheel", a) : this.trigger("mousewheel") 3892 }, 3893 unmousewheel: function (a) { 3894 return this.unbind("mousewheel", a) 3895 }, 3896 }) 3897 }), 3898 b.define( 3899 "jquery.select2", 3900 ["jquery", "jquery-mousewheel", "./select2/core", "./select2/defaults"], 3901 function (a, b, c, d) { 3902 if (null == a.fn.mselect2) { 3903 var e = ["open", "close", "destroy"] 3904 a.fn.mselect2 = function (b) { 3905 if (((b = b || {}), "object" == typeof b)) 3906 return ( 3907 this.each(function () { 3908 var d = a.extend(!0, {}, b) 3909 new c(a(this), d) 3910 }), 3911 this 3912 ) 3913 if ("string" == typeof b) { 3914 var d, 3915 f = Array.prototype.slice.call(arguments, 1) 3916 return ( 3917 this.each(function () { 3918 var c = a(this).data("select2") 3919 null == c && 3920 window.console && 3921 console.error && 3922 console.error( 3923 "The select2('" + 3924 b + 3925 "') method was called on an element that is not using Select2.", 3926 ), 3927 (d = c[b].apply(c, f)) 3928 }), 3929 a.inArray(b, e) > -1 ? this : d 3930 ) 3931 } 3932 throw new Error("Invalid arguments for Select2: " + b) 3933 } 3934 } 3935 return null == a.fn.mselect2.defaults && (a.fn.mselect2.defaults = d), c 3936 }, 3937 ), 3938 { define: b.define, require: b.require } 3939 ) 3940 })(), 3941 c = b.require("jquery.select2") 3942 return (a.fn.mselect2.amd = b), c 3943}) 3944 3945;/*! nanoScrollerJS - v0.8.7 - (c) 2015 James Florentino; Licensed MIT */ 3946 3947!(function (a) { 3948 return "function" == typeof define && define.amd 3949 ? define(["jquery"], function (b) { 3950 return a(b, window, document); 3951 }) 3952 : "object" == typeof exports 3953 ? (module.exports = a(require("jquery"), window, document)) 3954 : a(jQuery, window, document); 3955})(function (a, b, c) { 3956 "use strict"; 3957 var d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H; 3958 (z = { 3959 paneClass: "nano-pane", 3960 sliderClass: "nano-slider", 3961 contentClass: "nano-content", 3962 enabledClass: "has-scrollbar", 3963 flashedClass: "flashed", 3964 activeClass: "active", 3965 iOSNativeScrolling: !1, 3966 preventPageScrolling: !1, 3967 disableResize: !1, 3968 alwaysVisible: !1, 3969 flashDelay: 1500, 3970 sliderMinHeight: 20, 3971 sliderMaxHeight: null, 3972 documentContext: null, 3973 windowContext: null, 3974 }), 3975 (u = "scrollbar"), 3976 (t = "scroll"), 3977 (l = "mousedown"), 3978 (m = "mouseenter"), 3979 (n = "mousemove"), 3980 (p = "mousewheel"), 3981 (o = "mouseup"), 3982 (s = "resize"), 3983 (h = "drag"), 3984 (i = "enter"), 3985 (w = "up"), 3986 (r = "panedown"), 3987 (f = "DOMMouseScroll"), 3988 (g = "down"), 3989 (x = "wheel"), 3990 (j = "keydown"), 3991 (k = "keyup"), 3992 (v = "touchmove"), 3993 (d = 3994 "Microsoft Internet Explorer" === b.navigator.appName && 3995 /msie 7./i.test(b.navigator.appVersion) && 3996 b.ActiveXObject), 3997 (e = null),
3998 (D = b.requestAnimationFrame), 3999 (y = b.cancelAnimationFrame), 4000 (F = c.createElement("div").style), 4001 (H = (function () { 4002 var a, b, c, d, e, f; 4003 for (d = ["t", "webkitT", "MozT", "msT", "OT"], a = e = 0, f = d.length; f > e; a = ++e) 4004 if (((c = d[a]), (b = d[a] + "ransform"), b in F)) 4005 return d[a].substr(0, d[a].length - 1); 4006 return !1; 4007 })()), 4008 (G = function (a) { 4009 return H === !1 ? !1 : "" === H ? a : H + a.charAt(0).toUpperCase() + a.substr(1); 4010 }), 4011 (E = G("transform")), 4012 (B = E !== !1), 4013 (A = function () { 4014 var a, b, d; 4015 return ( 4016 (a = c.createElement("div")), 4017 (b = a.style), 4018 (b.position = "absolute"), 4019 (b.width = "100px"), 4020 (b.height = "100px"), 4021 (b.overflow = t), 4022 (b.top = "-9999px"), 4023 c.body.appendChild(a), 4024 (d = a.offsetWidth - a.clientWidth), 4025 c.body.removeChild(a), 4026 d 4027 ); 4028 }), 4029 (C = function () { 4030 var a, c, d; 4031 return ( 4032 (c = b.navigator.userAgent), 4033 (a = /(?=.+Mac OS X)(?=.+Firefox)/.test(c)) 4034 ? ((d = /Firefox\/\d{2}\./.exec(c)), 4035 d && (d = d[0].replace(/\D+/g, "")), 4036 a && +d > 23) 4037 : !1 4038 ); 4039 }), 4040 (q = (function () { 4041 function j(d, f) { 4042 (this.el = d), 4043 (this.options = f), 4044 e || (e = A()), 4045 (this.$el = a(this.el)), 4046 (this.doc = a(this.options.documentContext || c)), 4047 (this.win = a(this.options.windowContext || b)), 4048 (this.body = this.doc.find("body")), 4049 (this.$content = this.$el.children("." + this.options.contentClass)), 4050 this.$content.attr("tabindex", this.options.tabIndex || 0), 4051 (this.content = this.$content[0]), 4052 (this.previousPosition = 0), 4053 this.options.iOSNativeScrolling && null != this.el.style.WebkitOverflowScrolling 4054 ? this.nativeScrolling() 4055 : this.generate(), 4056 this.createEvents(), 4057 this.addEvents(), 4058 this.reset(); 4059 } 4060 return ( 4061 (j.prototype.preventScrolling = function (a, b) { 4062 if (this.isActive) 4063 if (a.type === f) 4064 ((b === g && a.originalEvent.detail > 0) || 4065 (b === w && a.originalEvent.detail < 0)) && 4066 a.preventDefault(); 4067 else if (a.type === p) { 4068 if (!a.originalEvent || !a.originalEvent.wheelDelta) return; 4069 ((b === g && a.originalEvent.wheelDelta < 0) || 4070 (b === w && a.originalEvent.wheelDelta > 0)) && 4071 a.preventDefault(); 4072 } 4073 }), 4074 (j.prototype.nativeScrolling = function () { 4075 this.$content.css({ WebkitOverflowScrolling: "touch" }), 4076 (this.iOSNativeScrolling = !0), 4077 (this.isActive = !0); 4078 }), 4079 (j.prototype.updateScrollValues = function () { 4080 var a, b; 4081 (a = this.content), 4082 (this.maxScrollTop = a.scrollHeight - a.clientHeight), 4083 (this.prevScrollTop = this.contentScrollTop || 0), 4084 (this.contentScrollTop = a.scrollTop), 4085 (b = 4086 this.contentScrollTop > this.previousPosition 4087 ? "down" 4088 : this.contentScrollTop < this.previousPosition 4089 ? "up" 4090 : "same"), 4091 (this.previousPosition = this.contentScrollTop), 4092 "same" !== b && 4093 this.$el.trigger("update", { 4094 position: this.contentScrollTop, 4095 maximum: this.maxScrollTop, 4096 direction: b, 4097 }), 4098 this.iOSNativeScrolling || 4099 ((this.maxSliderTop = this.paneHeight - this.sliderHeight), 4100 (this.sliderTop = 4101 0 === this.maxScrollTop 4102 ? 0 4103 : (this.contentScrollTop * this.maxSliderTop) / 4104 this.maxScrollTop)); 4105 }), 4106 (j.prototype.setOnScrollStyles = function () { 4107 var a; 4108 B 4109 ? ((a = {}), (a[E] = "translate(0, " + this.sliderTop + "px)")) 4110 : (a = { top: this.sliderTop }), 4111 D 4112 ? (y && this.scrollRAF && y(this.scrollRAF), 4113 (this.scrollRAF = D( 4114 (function (b) { 4115 return function () { 4116 return (b.scrollRAF = null), b.slider.css(a); 4117 }; 4118 })(this) 4119 ))) 4120 : this.slider.css(a); 4121 }), 4122 (j.prototype.createEvents = function () { 4123 this.events = { 4124 down: (function (a) { 4125 return function (b) { 4126 return ( 4127 (a.isBeingDragged = !0), 4128 (a.offsetY = b.pageY - a.slider.offset().top), 4129 a.slider.is(b.target) || (a.offsetY = 0), 4130 a.pane.addClass(a.options.activeClass), 4131 a.doc.bind(n, a.events[h]).bind(o, a.events[w]), 4132 a.body.bind(m, a.events[i]), 4133 !1 4134 ); 4135 }; 4136 })(this), 4137 drag: (function (a) { 4138 return function (b) { 4139 return ( 4140 (a.sliderY = 4141 b.pageY - 4142 a.$el.offset().top - 4143 a.paneTop - 4144 (a.offsetY || 0.5 * a.sliderHeight)), 4145 a.scroll(), 4146 a.contentScrollTop >= a.maxScrollTop && 4147 a.prevScrollTop !== a.maxScrollTop 4148 ? a.$el.trigger("scrollend") 4149 : 0 === a.contentScrollTop && 4150 0 !== a.prevScrollTop && 4151 a.$el.trigger("scrolltop"), 4152 !1 4153 ); 4154 }; 4155 })(this), 4156 up: (function (a) { 4157 return function (b) { 4158 return ( 4159 (a.isBeingDragged = !1), 4160 a.pane.removeClass(a.options.activeClass), 4161 a.doc.unbind(n, a.events[h]).unbind(o, a.events[w]), 4162 a.body.unbind(m, a.events[i]), 4163 !1 4164 ); 4165 }; 4166 })(this), 4167 resize: (function (a) { 4168 return function (b) { 4169 a.reset(); 4170 }; 4171 })(this), 4172 panedown: (function (a) { 4173 return function (b) { 4174 return ( 4175 (a.sliderY = 4176 (b.offsetY || b.originalEvent.layerY) - 4177 0.5 * a.sliderHeight), 4178 a.scroll(), 4179 a.events.down(b), 4180 !1 4181 ); 4182 }; 4183 })(this), 4184 scroll: (function (a) { 4185 return function (b) { 4186 a.updateScrollValues(), 4187 a.isBeingDragged || 4188 (a.iOSNativeScrolling || 4189 ((a.sliderY = a.sliderTop), a.setOnScrollStyles()), 4190 null != b && 4191 (a.contentScrollTop >= a.maxScrollTop 4192 ? (a.options.preventPageScrolling && 4193 a.preventScrolling(b, g), 4194 a.prevScrollTop !== a.maxScrollTop && 4195 a.$el.trigger("scrollend")) 4196 : 0 === a.contentScrollTop && 4197 (a.options.preventPageScrolling && 4198 a.preventScrolling(b, w), 4199 0 !== a.prevScrollTop && 4200 a.$el.trigger("scrolltop")))); 4201 }; 4202 })(this), 4203 wheel: (function (a) { 4204 return function (b) { 4205 var c; 4206 if (null != b) 4207 return ( 4208 (c = 4209 b.delta || 4210 b.wheelDelta || 4211 (b.originalEvent && b.originalEvent.wheelDelta) || 4212 -b.detail || 4213 (b.originalEvent && -b.originalEvent.detail)), 4214 c && (a.sliderY += -c / 3), 4215 a.scroll(), 4216 !1 4217 ); 4218 }; 4219 })(this), 4220 enter: (function (a) { 4221 return function (b) { 4222 var c; 4223 if (a.isBeingDragged) 4224 return 1 !== (b.buttons || b.which) 4225 ? (c = a.events)[w].apply(c, arguments) 4226 : void 0; 4227 }; 4228 })(this), 4229 }; 4230 }), 4231 (j.prototype.addEvents = function () { 4232 var a; 4233 this.removeEvents(), 4234 (a = this.events), 4235 this.options.disableResize || this.win.bind(s, a[s]), 4236 this.iOSNativeScrolling || 4237 (this.slider.bind(l, a[g]), 4238 this.pane.bind(l, a[r]).bind("" + p + " " + f, a[x])), 4239 this.$content.bind("" + t + " " + p + " " + f + " " + v, a[t]); 4240 }), 4241 (j.prototype.removeEvents = function () { 4242 var a; 4243 (a = this.events), 4244 this.win.unbind(s, a[s]), 4245 this.iOSNativeScrolling || (this.slider.unbind(), this.pane.unbind()), 4246 this.$content.unbind("" + t + " " + p + " " + f + " " + v, a[t]); 4247 }), 4248 (j.prototype.generate = function () { 4249 var a, c, d, f, g, h, i; 4250 return ( 4251 (f = this.options), 4252 (h = f.paneClass), 4253 (i = f.sliderClass), 4254 (a = f.contentClass), 4255 (g = this.$el.children("." + h)).length || 4256 g.children("." + i).length || 4257 this.$el.append( 4258 '<div class="' + h + '"><div class="' + i + '" /></div>' 4259 ), 4260 (this.pane = this.$el.children("." + h)), 4261 (this.slider = this.pane.find("." + i)), 4262 0 === e && C() 4263 ? ((d = b 4264 .getComputedStyle(this.content, null) 4265 .getPropertyValue("padding-right") 4266 .replace(/[^0-9.]+/g, "")), 4267 (c = { right: -14, paddingRight: +d + 14 })) 4268 : e && ((c = { right: -e }), this.$el.addClass(f.enabledClass)), 4269 null != c && this.$content.css(c), 4270 this 4271 ); 4272 }), 4273 (j.prototype.restore = function () { 4274 (this.stopped = !1), 4275 this.iOSNativeScrolling || this.pane.show(), 4276 this.addEvents(); 4277 }), 4278 (j.prototype.reset = function () { 4279 var a, b, c, f, g, h, i, j, k, l, m, n; 4280 return this.iOSNativeScrolling 4281 ? void (this.contentHeight = this.content.scrollHeight) 4282 : (this.$el.find("." + this.options.paneClass).length || 4283 this.generate().stop(),
4284 this.stopped && this.restore(), 4285 (a = this.content), 4286 (f = a.style), 4287 (g = f.overflowY), 4288 d && this.$content.css({ height: this.$content.height() }), 4289 (b = a.scrollHeight + e), 4290 (l = parseInt(this.$el.css("max-height"), 10)), 4291 l > 0 && 4292 (this.$el.height(""), 4293 this.$el.height(a.scrollHeight > l ? l : a.scrollHeight)), 4294 (i = this.pane.outerHeight(!1)), 4295 (k = parseInt(this.pane.css("top"), 10)), 4296 (h = parseInt(this.pane.css("bottom"), 10)), 4297 (j = i + k + h), 4298 (n = Math.round((j / b) * i)), 4299 n < this.options.sliderMinHeight 4300 ? (n = this.options.sliderMinHeight) 4301 : null != this.options.sliderMaxHeight && 4302 n > this.options.sliderMaxHeight && 4303 (n = this.options.sliderMaxHeight), 4304 g === t && f.overflowX !== t && (n += e), 4305 (this.maxSliderTop = j - n), 4306 (this.contentHeight = b), 4307 (this.paneHeight = i), 4308 (this.paneOuterHeight = j), 4309 (this.sliderHeight = n), 4310 (this.paneTop = k), 4311 this.slider.height(n), 4312 this.events.scroll(), 4313 this.pane.show(), 4314 (this.isActive = !0), 4315 a.scrollHeight === a.clientHeight || 4316 (this.pane.outerHeight(!0) >= a.scrollHeight && g !== t) 4317 ? (this.pane.hide(), (this.isActive = !1)) 4318 : this.el.clientHeight === a.scrollHeight && g === t 4319 ? this.slider.hide() 4320 : this.slider.show(), 4321 this.pane.css({ 4322 opacity: this.options.alwaysVisible ? 1 : "", 4323 visibility: this.options.alwaysVisible ? "visible" : "", 4324 }), 4325 (c = this.$content.css("position")), 4326 ("static" === c || "relative" === c) && 4327 ((m = parseInt(this.$content.css("right"), 10)), 4328 m && this.$content.css({ right: "", marginRight: m })), 4329 this); 4330 }), 4331 (j.prototype.scroll = function () { 4332 return this.isActive 4333 ? ((this.sliderY = Math.max(0, this.sliderY)), 4334 (this.sliderY = Math.min(this.maxSliderTop, this.sliderY)), 4335 this.$content.scrollTop( 4336 (this.maxScrollTop * this.sliderY) / this.maxSliderTop 4337 ), 4338 this.iOSNativeScrolling || 4339 (this.updateScrollValues(), this.setOnScrollStyles()), 4340 this) 4341 : void 0; 4342 }), 4343 (j.prototype.scrollBottom = function (a) { 4344 return this.isActive 4345 ? (this.$content 4346 .scrollTop(this.contentHeight - this.$content.height() - a) 4347 .trigger(p), 4348 this.stop().restore(), 4349 this) 4350 : void 0; 4351 }), 4352 (j.prototype.scrollTop = function (a) { 4353 return this.isActive 4354 ? (this.$content.scrollTop(+a).trigger(p), this.stop().restore(), this) 4355 : void 0; 4356 }), 4357 (j.prototype.scrollTo = function (a) { 4358 return this.isActive 4359 ? (this.scrollTop(this.$el.find(a).get(0).offsetTop), this) 4360 : void 0; 4361 }), 4362 (j.prototype.stop = function () { 4363 return ( 4364 y && this.scrollRAF && (y(this.scrollRAF), (this.scrollRAF = null)), 4365 (this.stopped = !0), 4366 this.removeEvents(), 4367 this.iOSNativeScrolling || this.pane.hide(), 4368 this 4369 ); 4370 }), 4371 (j.prototype.destroy = function () { 4372 return ( 4373 this.stopped || this.stop(), 4374 !this.iOSNativeScrolling && this.pane.length && this.pane.remove(), 4375 d && this.$content.height(""), 4376 this.$content.removeAttr("tabindex"), 4377 this.$el.hasClass(this.options.enabledClass) && 4378 (this.$el.removeClass(this.options.enabledClass), 4379 this.$content.css({ right: "" })), 4380 this 4381 ); 4382 }), 4383 (j.prototype.flash = function () { 4384 return !this.iOSNativeScrolling && this.isActive 4385 ? (this.reset(), 4386 this.pane.addClass(this.options.flashedClass), 4387 setTimeout( 4388 (function (a) { 4389 return function () { 4390 a.pane.removeClass(a.options.flashedClass); 4391 }; 4392 })(this), 4393 this.options.flashDelay 4394 ), 4395 this) 4396 : void 0; 4397 }), 4398 j 4399 ); 4400 })()), 4401 (a.fn.nanoScroller = function (b) { 4402 return this.each(function () { 4403 var c, d; 4404 if ( 4405 ((d = this.nanoscroller) || 4406 ((c = a.extend({}, z, b)), (this.nanoscroller = d = new q(this, c))), 4407 b && "object" == typeof b) 4408 ) { 4409 if ((a.extend(d.options, b), null != b.scrollBottom)) 4410 return d.scrollBottom(b.scrollBottom); 4411 if (null != b.scrollTop) return d.scrollTop(b.scrollTop); 4412 if (b.scrollTo) return d.scrollTo(b.scrollTo); 4413 if ("bottom" === b.scroll) return d.scrollBottom(0); 4414 if ("top" === b.scroll) return d.scrollTop(0); 4415 if (b.scroll && b.scroll instanceof a) return d.scrollTo(b.scroll); 4416 if (b.stop) return d.stop(); 4417 if (b.destroy) return d.destroy(); 4418 if (b.flash) return d.flash(); 4419 } 4420 return d.reset(); 4421 }); 4422 }), 4423 (a.fn.nanoScroller.Constructor = q); 4424}); 4425 4426;/*! 4427 * typeahead.js 0.11.1 4428 * https://github.com/twitter/typeahead.js 4429 * Copyright 2013-2015 Twitter, Inc. and other contributors; Licensed MIT 4430 */ 4431(function(root,factory){if(typeof define==="function"&&define.amd){define("typeahead.js",["jquery"],function(a0){return factory(a0);});}else if(typeof exports==="object"){module.exports=factory(require("jquery"));}else{factory(jQuery);}})(this,function($){var _=(function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:false;},isBlankString:function(str){return!str||/^\s*$/.test(str);},escapeRegExChars:function(str){return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");}
4431,isString:function(obj){return typeof obj==="string";},isNumber:function(obj){return typeof obj==="number";},isArray:$.isArray,isFunction:$.isFunction,isObject:$.isPlainObject,isUndefined:function(obj){return typeof obj==="undefined";},isElement:function(obj){return!!(obj&&obj.nodeType===1);},isJQuery:function(obj){return obj instanceof $;},toStr:function toStr(s){return _.isUndefined(s)||s===null?"":s+"";},bind:$.proxy,each:function(collection,cb){$.each(collection,reverseArgs);function reverseArgs(index,value){return cb(value,index);}},map:$.map,filter:$.grep,every:function(obj,test){var result=true;if(!obj){return result;} 4432$.each(obj,function(key,val){if(!(result=test.call(null,val,key,obj))){return false;}});return!!result;},some:function(obj,test){var result=false;if(!obj){return result;} 4433$.each(obj,function(key,val){if((result=test.call(null,val,key,obj))){return false;}});return!!result;},mixin:$.extend,identity:function(x){return x;},clone:function(obj){return $.extend(true,{},obj);},getIdGenerator:function(){var counter=0;return function(){return counter++;};},templatify:function templatify(obj){return $.isFunction(obj)?obj:template;function template(){return String(obj);}},defer:function(fn){setTimeout(fn,0);},debounce:function(func,wait,immediate){var timeout,result;return function(){var context=this,args=arguments,later,callNow;later=function(){timeout=null;if(!immediate){result=func.apply(context,args);}};callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow){result=func.apply(context,args);} 4434return result;};},throttle:function(func,wait){var context,args,timeout,result,previous,later;previous=0;later=function(){previous=new Date();timeout=null;result=func.apply(context,args);};return function(){var now=new Date(),remaining=wait-(now-previous);context=this;args=arguments;if(remaining<=0){clearTimeout(timeout);timeout=null;previous=now;result=func.apply(context,args);}else if(!timeout){timeout=setTimeout(later,remaining);} 4435return result;};},stringify:function(val){return _.isString(val)?val:JSON.stringify(val);},noop:function(){},};})();var WWW=(function(){"use strict";var defaultClassNames={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-open",cursor:"tt-cursor",highlight:"tt-highlight",};return build;function build(o){var www,classes;classes=_.mixin({},defaultClassNames,o);www={css:buildCss(),classes:classes,html:buildHtml(classes),selectors:buildSelectors(classes),};return{css:www.css,html:www.html,classes:www.classes,selectors:www.selectors,mixin:function(o){_.mixin(o,www);},};} 4436function buildHtml(c){return{wrapper:'<span class="'+c.wrapper+'"></span>',menu:'<div class="'+c.menu+'"></div>',};} 4437function buildSelectors(classes){var selectors={};_.each(classes,function(v,k){selectors[k]="."+v;});return selectors;} 4438function buildCss(){var css={wrapper:{position:"relative",display:"inline-block",},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1",},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent",},inputWithNoHint:{position:"relative",verticalAlign:"top",},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none",},ltr:{left:"0",right:"auto",},rtl:{left:"auto",right:" 0",},};if(_.isMsie()){_.mixin(css.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)",});} 4439return css;}})();var EventBus=(function(){"use strict";var namespace,deprecationMap;namespace="typeahead:";deprecationMap={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted",};function EventBus(o){if(!o||!o.el){$.error("EventBus initialized without el");} 4440this.$el=$(o.el);} 4441_.mixin(EventBus.prototype,{_trigger:function(type,args){var $e;$e=$.Event(namespace+type);(args=args||[]).unshift($e);this.$el.trigger.apply(this.$el,args);return $e;},before:function(type){var args,$e;args=[].slice.call(arguments,1);$e=this._trigger("before"+type,args);return $e.isDefaultPrevented();},trigger:function(type){var deprecatedType;
4441this._trigger(type,[].slice.call(arguments,1));if((deprecatedType=deprecationMap[type])){this._trigger(deprecatedType,[].slice.call(arguments,1));}},});return EventBus;})();var EventEmitter=(function(){"use strict";var splitter=/\s+/,nextTick=getNextTick();return{onSync:onSync,onAsync:onAsync,off:off,trigger:trigger,};function on(method,types,cb,context){var type;if(!cb){return this;} 4442types=types.split(splitter);cb=context?bindContext(cb,context):cb;this._callbacks=this._callbacks||{};while((type=types.shift())){this._callbacks[type]=this._callbacks[type]||{sync:[],async:[],};this._callbacks[type][method].push(cb);} 4443return this;} 4444function onAsync(types,cb,context){return on.call(this,"async",types,cb,context);} 4445function onSync(types,cb,context){return on.call(this,"sync",types,cb,context);} 4446function off(types){var type;if(!this._callbacks){return this;} 4447types=types.split(splitter);while((type=types.shift())){delete this._callbacks[type];} 4448return this;} 4449function trigger(types){var type,callbacks,args,syncFlush,asyncFlush;if(!this._callbacks){return this;} 4450types=types.split(splitter);args=[].slice.call(arguments,1);while((type=types.shift())&&(callbacks=this._callbacks[type])){syncFlush=getFlush(callbacks.sync,this,[type].concat(args));asyncFlush=getFlush(callbacks.async,this,[type].concat(args));syncFlush()&&nextTick(asyncFlush);} 4451return this;} 4452function getFlush(callbacks,context,args){return flush;function flush(){var cancelled;for(var i=0,len=callbacks.length;!cancelled&&i<len;i+=1){cancelled=callbacks[i].apply(context,args)===false;} 4453return!cancelled;}} 4454function getNextTick(){var nextTickFn;if(window.setImmediate){nextTickFn=function nextTickSetImmediate(fn){setImmediate(function(){fn();});};}else{nextTickFn=function nextTickSetTimeout(fn){setTimeout(function(){fn();},0);};} 4455return nextTickFn;} 4456function bindContext(fn,context){return fn.bind?fn.bind(context):function(){fn.apply(context,[].slice.call(arguments,0));};}})();var highlight=(function(doc){"use strict";var defaults={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:false,caseSensitive:false,};return function hightlight(o){var regex;o=_.mixin({},defaults,o);if(!o.node||!o.pattern){return;} 4457o.pattern=_.isArray(o.pattern)?o.pattern:[o.pattern];regex=getRegex(o.pattern,o.caseSensitive,o.wordsOnly);traverse(o.node,hightlightTextNode);function hightlightTextNode(textNode){var match,patternNode,wrapperNode;if((match=regex.exec(textNode.data))){wrapperNode=doc.createElement(o.tagName);o.className&&(wrapperNode.className=o.className);patternNode=textNode.splitText(match.index);patternNode.splitText(match[0].length);wrapperNode.appendChild(patternNode.cloneNode(true));textNode.parentNode.replaceChild(wrapperNode,patternNode);} 4458return!!match;} 4459function traverse(el,hightlightTextNode){var childNode,TEXT_NODE_TYPE=3;for(var i=0;i<el.childNodes.length;i++){childNode=el.childNodes[i];if(childNode.nodeType===TEXT_NODE_TYPE){i+=hightlightTextNode(childNode)?1:0;}else{traverse(childNode,hightlightTextNode);}}}};function getRegex(patterns,caseSensitive,wordsOnly){var escapedPatterns=[],regexStr;for(var i=0,len=patterns.length;i<len;i++){escapedPatterns.push(_.escapeRegExChars(patterns[i]));} 4460regexStr=wordsOnly?"\\b("+escapedPatterns.join("|")+")\\b":"("+escapedPatterns.join("|")+")";return caseSensitive?new RegExp(regexStr):new RegExp(regexStr,"i");}})(window.document);var Input=(function(){"use strict";var specialKeyCodeMap;specialKeyCodeMap={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down",};function Input(o,www){o=o||{};if(!o.input){$.error("input is missing");} 4461www.mixin(this);this.$hint=$(o.hint);this.$input=$(o.input);this.query=this.$input.val();this.queryWhenFocused=this.hasFocus()?this.query:null;this.$overflowHelper=buildOverflowHelper(this.$input);this._checkLanguageDirection();if(this.$hint.length===0){this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=_.noop;}} 4462Input.normalizeQuery=function(str){return _.toStr(str).replace(/^\s*/g,"").replace(/\s{2,}/g," ");};_.mixin(Input.prototype,EventEmitter,{_onBlur:function onBlur(){this.resetInputValue();this.trigger("blurred");},_onFocus:function onFocus(){this.queryWhenFocused=this.query;this.trigger("focused");},_onKeydown:function onKeydown($e){var keyName=specialKeyCodeMap[$e.which||$e.keyCode];this._managePreventDefault(keyName,$e);if(keyName&&this._shouldTrigger(keyName,$e)){this.trigger(keyName+"Keyed",$e);}},_onInput:function onInput(){this._setQuery(this.getInputValue());this.clearHintIfInvalid();this._checkLanguageDirection();},_managePreventDefault:function managePreventDefault(keyName,$e){var preventDefault;switch(keyName){case"up":case"down":preventDefault=!withModifier($e);break;default:preventDefault=false;} 4463preventDefault&&$e.preventDefault();},_shouldTrigger:function shouldTrigger(keyName,$e){var trigger;switch(keyName){case"tab":trigger=!withModifier($e);break;default:trigger=true;} 4464return trigger;},_checkLanguageDirection:function checkLanguageDirection(){var dir=(this.$input.css("direction")||"ltr").toLowerCase();if(this.dir!==dir){this.dir=dir;this.$hint.attr("dir",dir);this.trigger("langDirChanged",dir);}},_setQuery:function setQuery(val,silent){var areEquivalent,hasDifferentWhitespace;areEquivalent=areQueriesEquivalent(val,this.query);hasDifferentWhitespace=areEquivalent?this.query.length!==val.length:false;this.query=val;if(!silent&&!areEquivalent){this.trigger("queryChanged",this.query);}else if(!silent&&hasDifferentWhitespace){this.trigger("whitespaceChanged",this.query);}},bind:function(){var that=this,onBlur,onFocus,onKeydown,onInput;onBlur=_.bind(this._onBlur,this);onFocus=_.bind(this._onFocus,this);onKeydown=_.bind(this._onKeydown,this);onInput=_.bind(this._onInput,this);this.$input.on("blur.tt",onBlur).on("focus.tt",onFocus).on("keydown.tt",onKeydown);if(!_.isMsie()||_.isMsie()>9){this.$input.on("input.tt",onInput);}
vendor: 4,651 bytes, lines 4464-4476
4464else{this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function($e){if(specialKeyCodeMap[$e.which||$e.keyCode]){return;} 4465_.defer(_.bind(that._onInput,that,$e));});} 4466return this;},focus:function focus(){this.$input.focus();},blur:function blur(){this.$input.blur();},getLangDir:function getLangDir(){return this.dir;},getQuery:function getQuery(){return this.query||"";},setQuery:function setQuery(val,silent){this.setInputValue(val);this._setQuery(val,silent);},hasQueryChangedSinceLastFocus:function hasQueryChangedSinceLastFocus(){return this.query!==this.queryWhenFocused;},getInputValue:function getInputValue(){return this.$input.val();},setInputValue:function setInputValue(value){this.$input.val(value);this.clearHintIfInvalid();this._checkLanguageDirection();},resetInputValue:function resetInputValue(){this.setInputValue(this.query);},getHint:function getHint(){return this.$hint.val();},setHint:function setHint(value){this.$hint.val(value);},clearHint:function clearHint(){this.setHint("");},clearHintIfInvalid:function clearHintIfInvalid(){var val,hint,valIsPrefixOfHint,isValid;val=this.getInputValue();hint=this.getHint();valIsPrefixOfHint=val!==hint&&hint.indexOf(val)===0;isValid=val!==""&&valIsPrefixOfHint&&!this.hasOverflow();!isValid&&this.clearHint();},hasFocus:function hasFocus(){return this.$input.is(":focus");},hasOverflow:function hasOverflow(){var constraint=this.$input.width()-2;this.$overflowHelper.text(this.getInputValue());return this.$overflowHelper.width()>=constraint;},isCursorAtEnd:function(){var valueLength,selectionStart,range;valueLength=this.$input.val().length;selectionStart=this.$input[0].selectionStart;if(_.isNumber(selectionStart)){return selectionStart===valueLength;}else if(document.selection){range=document.selection.createRange();range.moveStart("character",-valueLength);return valueLength===range.text.length;} 4467return true;},destroy:function destroy(){this.$hint.off(".tt");this.$input.off(".tt");this.$overflowHelper.remove();this.$hint=this.$input=this.$overflowHelper=$("<div>");},});return Input;function buildOverflowHelper($input){return $('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:$input.css("font-family"),fontSize:$input.css("font-size"),fontStyle:$input.css("font-style"),fontVariant:$input.css("font-variant"),fontWeight:$input.css("font-weight"),wordSpacing:$input.css("word-spacing"),letterSpacing:$input.css("letter-spacing"),textIndent:$input.css("text-indent"),textRendering:$input.css("text-rendering"),textTransform:$input.css("text-transform"),}).insertAfter($input);} 4468function areQueriesEquivalent(a,b){return Input.normalizeQuery(a)===Input.normalizeQuery(b);} 4469function withModifier($e){return $e.altKey||$e.ctrlKey||$e.metaKey||$e.shiftKey;}})();var Dataset=(function(){"use strict";var keys,nameGenerator;keys={val:"tt-selectable-display",obj:"tt-selectable-object",};nameGenerator=_.getIdGenerator();function Dataset(o,www){o=o||{};o.templates=o.templates||{};o.templates.notFound=o.templates.notFound||o.templates.empty;if(!o.source){$.error("missing source");} 4470if(!o.node){$.error("missing node");} 4471if(o.name&&!isValidName(o.name)){$.error("invalid dataset name: "+o.name);} 4472www.mixin(this);this.highlight=!!o.highlight;this.name=o.name||nameGenerator();this.limit=o.limit||5;this.displayFn=getDisplayFn(o.display||o.displayKey);this.templates=getTemplates(o.templates,this.displayFn);this.source=o.source.__ttAdapter?o.source.__ttAdapter():o.source;this.async=_.isUndefined(o.async)?this.source.length>2:!!o.async;this._resetLastSuggestion();this.$el=$(o.node).addClass(this.classes.dataset).addClass(this.classes.dataset+"-"+this.name);} 4473Dataset.extractData=function extractData(el){var $el=$(el);if($el.data(keys.obj)){return{val:$el.data(keys.val)||"",obj:$el.data(keys.obj)||null,};} 4474return null;};_.mixin(Dataset.prototype,EventEmitter,{_overwrite:function overwrite(query,suggestions){suggestions=suggestions||[];if(suggestions.length){this._renderSuggestions(query,suggestions);}else if(this.async&&this.templates.pending){this._renderPending(query);}else if(!this.async&&this.templates.notFound){this._renderNotFound(query);}else{this._empty();} 4475this.trigger("rendered",this.name,suggestions,false);},_append:function append(query,suggestions){suggestions=suggestions||[];if(suggestions.length&&this.$lastSuggestion.length){this._appendSuggestions(query,suggestions);}else if(suggestions.length){this._renderSuggestions(query,suggestions);}else if(!this.$lastSuggestion.length&&this.templates.notFound){this._renderNotFound(query);} 4476this.trigger("rendered",this.name,suggestions,true);}
4476,_renderSuggestions:function renderSuggestions(query,suggestions){var $fragment;$fragment=this._getSuggestionsFragment(query,suggestions);this.$lastSuggestion=$fragment.children().last();this.$el.html($fragment).prepend(this._getHeader(query,suggestions)).append(this._getFooter(query,suggestions));},_appendSuggestions:function appendSuggestions(query,suggestions){var $fragment,$lastSuggestion;$fragment=this._getSuggestionsFragment(query,suggestions);$lastSuggestion=$fragment.children().last();this.$lastSuggestion.after($fragment);this.$lastSuggestion=$lastSuggestion;},_renderPending:function renderPending(query){var template=this.templates.pending;this._resetLastSuggestion();template&&this.$el.html(template({query:query,dataset:this.name,}));},_renderNotFound:function renderNotFound(query){var template=this.templates.notFound;this._resetLastSuggestion();template&&this.$el.html(template({query:query,dataset:this.name,}));},_empty:function empty(){this.$el.empty();this._resetLastSuggestion();},_getSuggestionsFragment:function getSuggestionsFragment(query,suggestions){var that=this,fragment;fragment=document.createDocumentFragment();_.each(suggestions,function getSuggestionNode(suggestion){var $el,context;context=that._injectQuery(query,suggestion);$el=$(that.templates.suggestion(context)).data(keys.obj,suggestion).data(keys.val,that.displayFn(suggestion)).addClass(that.classes.suggestion+" "+that.classes.selectable);fragment.appendChild($el[0]);});this.highlight&&highlight({className:this.classes.highlight,node:fragment,pattern:query,});return $(fragment);},_getFooter:function getFooter(query,suggestions){return this.templates.footer?this.templates.footer({query:query,suggestions:suggestions,dataset:this.name,}):null;},_getHeader:function getHeader(query,suggestions){return this.templates.header?this.templates.header({query:query,suggestions:suggestions,dataset:this.name,}):null;},_resetLastSuggestion:function resetLastSuggestion(){this.$lastSuggestion=$();},_injectQuery:function injectQuery(query,obj){return _.isObject(obj)?_.mixin({_query:query,},obj):obj;},update:function update(query){var that=this,canceled=false,syncCalled=false,rendered=0;this.cancel();this.cancel=function cancel(){canceled=true;that.cancel=$.noop;that.async&&that.trigger("asyncCanceled",query);};this.source(query,sync,async);!syncCalled&&sync([]);function sync(suggestions){if(syncCalled){return;} 4477syncCalled=true;suggestions=(suggestions||[]).slice(0,that.limit);rendered=suggestions.length;that._overwrite(query,suggestions);if(rendered<that.limit&&that.async){that.trigger("asyncRequested",query);}} 4478function async(suggestions){suggestions=suggestions||[];if(!canceled&&rendered<that.limit){that.cancel=$.noop;rendered+=suggestions.length;that._append(query,suggestions.slice(0,that.limit-rendered));that.async&&that.trigger("asyncReceived",query);}}},cancel:$.noop,clear:function clear(){this._empty();this.cancel();this.trigger("cleared");},isEmpty:function isEmpty(){return this.$el.is(":empty");},destroy:function destroy(){this.$el=$("<div>");},});return Dataset;function getDisplayFn(display){display=display||_.stringify;return _.isFunction(display)?display:displayFn;function displayFn(obj){return obj[display];}} 4479function getTemplates(templates,displayFn){return{notFound:templates.notFound&&_.templatify(templates.notFound),pending:templates.pending&&_.templatify(templates.pending),header:templates.header&&_.templatify(templates.header),footer:templates.footer&&_.templatify(templates.footer),suggestion:templates.suggestion||suggestionTemplate,};function suggestionTemplate(context){return $("<div>").text(displayFn(context));}} 4480function isValidName(str){return/^[_a-zA-Z0-9-]+$/.test(str);}})();var Menu=(function(){"use strict";function Menu(o,www){var that=this;o=o||{};if(!o.node){$.error("node is required");} 4481www.mixin(this);this.$node=$(o.node);this.query=null;this.datasets=_.map(o.datasets,initializeDataset);function initializeDataset(oDataset){var node=that.$node.find(oDataset.node).first();oDataset.node=node.length?node:$("<div>").appendTo(that.$node);return new Dataset(oDataset,www);}} 4482_.mixin(Menu.prototype,EventEmitter,{_onSelectableClick:function onSelectableClick($e){this.trigger("selectableClicked",$($e.currentTarget));},_onRendered:function onRendered(type,dataset,suggestions,async){this.$n
vendor: 12,213 bytes, lines 4482-4498
4482ode.toggleClass(this.classes.empty,this._allDatasetsEmpty());this.trigger("datasetRendered",dataset,suggestions,async);},_onCleared:function onCleared(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty());this.trigger("datasetCleared");},_propagate:function propagate(){this.trigger.apply(this,arguments);},_allDatasetsEmpty:function allDatasetsEmpty(){return _.every(this.datasets,isDatasetEmpty);function isDatasetEmpty(dataset){return dataset.isEmpty();}},_getSelectables:function getSelectables(){return this.$node.find(this.selectors.selectable);},_removeCursor:function _removeCursor(){var $selectable=this.getActiveSelectable();$selectable&&$selectable.removeClass(this.classes.cursor);},_ensureVisible:function ensureVisible($el){var elTop,elBottom,nodeScrollTop,nodeHeight;elTop=$el.position().top;elBottom=elTop+$el.outerHeight(true);nodeScrollTop=this.$node.scrollTop();nodeHeight=this.$node.height()+ 4483parseInt(this.$node.css("paddingTop"),10)+ 4484parseInt(this.$node.css("paddingBottom"),10);if(elTop<0){this.$node.scrollTop(nodeScrollTop+elTop);}else if(nodeHeight<elBottom){this.$node.scrollTop(nodeScrollTop+(elBottom-nodeHeight));}},bind:function(){var that=this,onSelectableClick;onSelectableClick=_.bind(this._onSelectableClick,this);this.$node.on("click.tt",this.selectors.selectable,onSelectableClick);_.each(this.datasets,function(dataset){dataset.onSync("asyncRequested",that._propagate,that).onSync("asyncCanceled",that._propagate,that).onSync("asyncReceived",that._propagate,that).onSync("rendered",that._onRendered,that).onSync("cleared",that._onCleared,that);});return this;},isOpen:function isOpen(){return this.$node.hasClass(this.classes.open);},open:function open(){this.$node.addClass(this.classes.open);},close:function close(){this.$node.removeClass(this.classes.open);this._removeCursor();},setLanguageDirection:function setLanguageDirection(dir){this.$node.attr("dir",dir);},selectableRelativeToCursor:function selectableRelativeToCursor(delta){var $selectables,$oldCursor,oldIndex,newIndex;$oldCursor=this.getActiveSelectable();$selectables=this._getSelectables();oldIndex=$oldCursor?$selectables.index($oldCursor):-1;newIndex=oldIndex+delta;newIndex=((newIndex+1)%($selectables.length+1))-1;newIndex=newIndex<-1?$selectables.length-1:newIndex;return newIndex===-1?null:$selectables.eq(newIndex);},setCursor:function setCursor($selectable){this._removeCursor();if(($selectable=$selectable&&$selectable.first())){$selectable.addClass(this.classes.cursor);this._ensureVisible($selectable);}},getSelectableData:function getSelectableData($el){return $el&&$el.length?Dataset.extractData($el):null;},getActiveSelectable:function getActiveSelectable(){var $selectable=this._getSelectables().filter(this.selectors.cursor).first();return $selectable.length?$selectable:null;},getTopSelectable:function getTopSelectable(){var $selectable=this._getSelectables().first();return $selectable.length?$selectable:null;},update:function update(query){var isValidUpdate=query!==this.query;if(isValidUpdate){this.query=query;_.each(this.datasets,updateDataset);} 4485return isValidUpdate;function updateDataset(dataset){dataset.update(query);}},empty:function empty(){_.each(this.datasets,clearDataset);this.query=null;this.$node.addClass(this.classes.empty);function clearDataset(dataset){dataset.clear();}},destroy:function destroy(){this.$node.off(".tt");this.$node=$("<div>");_.each(this.datasets,destroyDataset);function destroyDataset(dataset){dataset.destroy();}},});return Menu;})();var DefaultMenu=(function(){"use strict";var s=Menu.prototype;function DefaultMenu(){Menu.apply(this,[].slice.call(arguments,0));} 4486_.mixin(DefaultMenu.prototype,Menu.prototype,{open:function open(){!this._allDatasetsEmpty()&&this._show();return s.open.apply(this,[].slice.call(arguments,0));},close:function close(){this._hide();return s.close.apply(this,[].slice.call(arguments,0));},_onRendered:function onRendered(){if(this._allDatasetsEmpty()){this._hide();}else{this.isOpen()&&this._show();} 4487return s._onRendered.apply(this,[].slice.call(arguments,0));},_onCleared:function onCleared(){if(this._allDatasetsEmpty()){this._hide();}else{this.isOpen()&&this._show();} 4488return s._onCleared.apply(this,[].slice.call(arguments,0));},setLanguageDirection:function setLanguageDirection(dir){this.$node.css(dir==="ltr"?this.css.ltr:this.css.rtl);return s.setLanguageDirection.apply(this,[].slice.call(arguments,0));},_hide:function hide(){this.$node.hide();},_show:function show(){this.$node.css("display","block");},});return DefaultMenu;})();var Typeahead=(function(){"use strict";function Typeahead(o,www){var onFocused,onBlurred,onEnterKeyed,onTabKeyed,onEscKeyed,onUpKeyed,onDownKeyed,onLeftKeyed,onRightKeyed,onQueryChanged,onWhitespaceChanged;o=o||{};if(!o.input){$.error("missing input");} 4489if(!o.menu){$.error("missing menu");} 4490if(!o.eventBus){$.error("missing event bus");} 4491www.mixin(this);this.eventBus=o.eventBus;this.minLength=_.isNumber(o.minLength)?o.minLength:1;this.input=o.input;this.menu=o.menu;this.enabled=true;this.active=false;this.input.hasFocus()&&this.activate();this.dir=this.input.getLangDir();this._hacks();this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this);onFocused=c(this,"activate","open","_onFocused");onBlurred=c(this,"deactivate","_onBlurred");onEnterKeyed=c(this,"isActive","isOpen","_onEnterKeyed");onTabKeyed=c(this,"isActive","isOpen","_onTabKeyed");onEscKeyed=c(this,"isActive","_onEscKeyed");onUpKeyed=c(this,"isActive","open","_onUpKeyed");onDownKeyed=c(this,"isActive","open","_onDownKeyed");onLeftKeyed=c(this,"isActive","isOpen","_onLeftKeyed");onRightKeyed=c(this,"isActive","isOpen","_onRightKeyed");onQueryChanged=c(this,"_openIfActive","_onQueryChanged");onWhitespaceChanged=c(this,"_openIfActive","_onWhitespaceChanged");this.input.bind().onSync("focused",onFocused,this).onSync("blurred",onBlurred,this).onSync("enterKeyed",onEnterKeyed,this).onSync("tabKeyed",onTabKeyed,this).onSync("escKeyed",onEscKeyed,this).onSync("upKeyed",onUpKeyed,this).onSync("downKeyed",onDownKeyed,this).onSync("leftKeyed",onLeftKeyed,this).onSync("rightKeyed",onRightKeyed,this).onSync("queryChanged",onQueryChanged,this).onSync("whitespaceChanged",onWhitespaceChanged,this).onSync("langDirChanged",this._onLangDirChanged,this);} 4492_.mixin(Typeahead.prototype,{_hacks:function hacks(){var $input,$menu;$input=this.input.$input||$("<div>");$menu=this.menu.$node||$("<div>");$input.on("blur.tt",function($e){var active,isActive,hasActive;active=document.activeElement;isActive=$menu.is(active);hasActive=$menu.has(active).length>0;if(_.isMsie()&&(isActive||hasActive)){$e.preventDefault();$e.stopImmediatePropagation();_.defer(function(){$input.focus();});}});$menu.on("mousedown.tt",function($e){$e.preventDefault();});},_onSelectableClicked:function onSelectableClicked(type,$el){this.select($el);},_onDatasetCleared:function onDatasetCleared(){this._updateHint();},_onDatasetRendered:function onDatasetRendered(type,dataset,suggestions,async){this._updateHint();this.eventBus.trigger("render",suggestions,async,dataset);},_onAsyncRequested:function onAsyncRequested(type,dataset,query){this.eventBus.trigger("asyncrequest",query,dataset);},_onAsyncCanceled:function onAsyncCanceled(type,dataset,query){this.eventBus.trigger("asynccancel",query,dataset);},_onAsyncReceived:function onAsyncReceived(type,dataset,query){this.eventBus.trigger("asyncreceive",query,dataset);},_onFocused:function onFocused(){this._minLengthMet()&&this.menu.update(this.input.getQuery());},_onBlurred:function onBlurred(){if(this.input.hasQueryChangedSinceLastFocus()){this.eventBus.trigger("change",this.input.getQuery());}},_onEnterKeyed:function onEnterKeyed(type,$e){var $selectable;if(($selectable=this.menu.getActiveSelectable())){this.select($selectable)&&$e.preventDefault();}},_onTabKeyed:function onTabKeyed(type,$e){var $selectable;if(($selectable=this.menu.getActiveSelectable())){this.select($selectable)&&$e.preventDefault();}else if(($selectable=this.menu.getTopSelectable())){this.autocomplete($selectable)&&$e.preventDefault();}},_onEscKeyed:function onEscKeyed(){this.close();},_onUpKeyed:function onUpKeyed(){this.moveCursor(-1);},_onDownKeyed:function onDownKeyed(){this.moveCursor(+1);},_onLeftKeyed:function onLeftKeyed(){if(this.dir==="rtl"&&this.input.isCursorAtEnd()){this.autocomplete(this.menu.getTopSelectable());}},_onRightKeyed:function onRightKeyed(){if(this.dir==="ltr"&&this.input.isCursorAtEnd()){this.autocomplete(this.menu.getTopSelectable());}},_onQueryChanged:function onQueryChanged(e,query){this._minLengthMet(query)?this.menu.update(query):this.menu.empty();},_onWhitespaceChanged:function onWhitespaceChanged(){this._updateHint();},_onLangDirChanged:function onLangDirChanged(e,dir){if(this.dir!==dir){this.dir=dir;this.menu.setLanguageDirection(dir);}},_openIfActive:function openIfActive(){this.isActive()&&this.open();},_minLengthMet:function minLengthMet(query){query=_.isString(query)?query:this.input.getQuery()||"";return query.length>=this.minLength;},_updateHint:function updateHint(){var $selectable,data,val,query,escapedQuery,frontMatchRegEx,match;$selectable=this.menu.getTopSelectable();data=this.menu.getSelectableData($selectable);val=this.input.getInputValue();if(data&&!_.isBlankString(val)&&!this.input.hasOverflow()){query=Input.normalizeQuery(val);escapedQuery=_.escapeRegExChars(query);frontMatchRegEx=new RegExp("^(?:"+escapedQuery+")(.+$)","i");match=frontMatchRegEx.exec(data.val);match&&this.input.setHint(val+match[1]);}else{this.input.clearHint();}},isEnabled:function isEnabled(){return this.enabled;},enable:function enable(){this.enabled=true;},disable:function disable(){this.enabled=false;},isActive:function isActive(){return this.active;},activate:function activate(){if(this.isActive()){return true;}else if(!this.isEnabled()||this.eventBus.before("active")){return false;}else{this.active=true;this.eventBus.trigger("active");return true;}},deactivate:function deactivate(){if(!this.isActive()){return true;}else if(this.eventBus.before("idle")){return false;}else{this.active=false;this.close();this.eventBus.trigger("idle");return true;}},isOpen:function isOpen(){return this.menu.isOpen();},open:function open(){if(!this.isOpen()&&!this.eventBus.before("open")){this.menu.open();this._updateHint();this.eventBus.trigger("open");} 4493return this.isOpen();},close:function close(){if(this.isOpen()&&!this.eventBus.before("close")){this.menu.close();this.input.clearHint();this.input.resetInputValue();this.eventBus.trigger("close");} 4494return!this.isOpen();},setVal:function setVal(val){this.input.setQuery(_.toStr(val));},getVal:function getVal(){return this.input.getQuery();},select:function select($selectable){var data=this.menu.getSelectableData($selectable);if(data&&!this.eventBus.before("select",data.obj)){this.input.setQuery(data.val,true);this.eventBus.trigger("select",data.obj);this.close();return true;} 4495return false;},autocomplete:function autocomplete($selectable){var query,data,isValid;query=this.input.getQuery();data=this.menu.getSelectableData($selectable);isValid=data&&query!==data.val;if(isValid&&!this.eventBus.before("autocomplete",data.obj)){this.input.setQuery(data.val);this.eventBus.trigger("autocomplete",data.obj);return true;} 4496return false;},moveCursor:function moveCursor(delta){var query,$candidate,data,payload,cancelMove;query=this.input.getQuery();$candidate=this.menu.selectableRelativeToCursor(delta);data=this.menu.getSelectableData($candidate);payload=data?data.obj:null;cancelMove=this._minLengthMet()&&this.menu.update(query);if(!cancelMove&&!this.eventBus.before("cursorchange",payload)){this.menu.setCursor($candidate);if(data){this.input.setInputValue(data.val);}else{this.input.resetInputValue();this._updateHint();} 4497this.eventBus.trigger("cursorchange",payload);return true;} 4498return false;},destroy:function destroy(){this.input.destroy();this.menu.destroy();},});return Typeahead;
4498function c(ctx){var methods=[].slice.call(arguments,1);return function(){var args=[].slice.call(arguments);_.each(methods,function(method){return ctx[method].apply(ctx,args);});};}})();(function(){"use strict";var old,keys,methods;old=$.fn.typeahead;keys={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead",};methods={initialize:function initialize(o,datasets){var www;datasets=_.isArray(datasets)?datasets:[].slice.call(arguments,1);o=o||{};www=WWW(o.classNames);return this.each(attach);function attach(){var $input,$wrapper,$hint,$menu,defaultHint,defaultMenu,eventBus,input,menu,typeahead,MenuConstructor;_.each(datasets,function(d){d.highlight=!!o.highlight;});$input=$(this);$wrapper=$(www.html.wrapper);$hint=$elOrNull(o.hint);$menu=$elOrNull(o.menu);defaultHint=o.hint!==false&&!$hint;defaultMenu=o.menu!==false&&!$menu;defaultHint&&($hint=buildHintFromInput($input,www));defaultMenu&&($menu=$(www.html.menu).css(www.css.menu));$hint&&$hint.val("");$input=prepInput($input,www);if(defaultHint||defaultMenu){$wrapper.css(www.css.wrapper);$input.css(defaultHint?www.css.input:www.css.inputWithNoHint);$input.wrap($wrapper).parent().prepend(defaultHint?$hint:null).append(defaultMenu?$menu:null);} 4499MenuConstructor=defaultMenu?DefaultMenu:Menu;eventBus=new EventBus({el:$input,});input=new Input({hint:$hint,input:$input,},www);menu=new MenuConstructor({node:$menu,datasets:datasets,},www);typeahead=new Typeahead({input:input,menu:menu,eventBus:eventBus,minLength:o.minLength,},www);$input.data(keys.www,www);$input.data(keys.typeahead,typeahead);}},isEnabled:function isEnabled(){var enabled;ttEach(this.first(),function(t){enabled=t.isEnabled();});return enabled;},enable:function enable(){ttEach(this,function(t){t.enable();});return this;},disable:function disable(){ttEach(this,function(t){t.disable();});return this;},isActive:function isActive(){var active;ttEach(this.first(),function(t){active=t.isActive();});return active;},activate:function activate(){ttEach(this,function(t){t.activate();});return this;},deactivate:function deactivate(){ttEach(this,function(t){t.deactivate();});return this;},isOpen:function isOpen(){var open;ttEach(this.first(),function(t){open=t.isOpen();});return open;},open:function open(){ttEach(this,function(t){t.open();});return this;},close:function close(){ttEach(this,function(t){t.close();});return this;},select:function select(el){var success=false,$el=$(el);ttEach(this.first(),function(t){success=t.select($el);});return success;},autocomplete:function autocomplete(el){var success=false,$el=$(el);ttEach(this.first(),function(t){success=t.autocomplete($el);});return success;},moveCursor:function moveCursoe(delta){var success=false;ttEach(this.first(),function(t){success=t.moveCursor(delta);});return success;},val:function val(newVal){var query;if(!arguments.length){ttEach(this.first(),function(t){query=t.getVal();});return query;}else{ttEach(this,function(t){t.setVal(newVal);});return this;}},destroy:function destroy(){ttEach(this,function(typeahead,$input){revert($input);typeahead.destroy();});return this;},};$.fn.typeahead=function(method){if(methods[method]){return methods[method].apply(this,[].slice.call(arguments,1));}else{return methods.initialize.apply(this,arguments);}};$.fn.typeahead.noConflict=function noConflict(){$.fn.typeahead=old;return this;};function ttEach($els,fn){$els.each(function(){var $input=$(this),typeahead;(typeahead=$input.data(keys.typeahead))&&fn(typeahead,$input);});} 4500function buildHintFromInput($input,www){return $input.clone().addClass(www.classes.hint).removeData().css(www.css.hint).css(getBackgroundStyles($input)).prop("readonly",true).removeAttr("id name placeholder required").attr({autocomplete:"off",spellcheck:"false",tabindex:-1,});} 4501function prepInput($input,www){$input.data(keys.attrs,{dir:$input.attr("dir"),autocomplete:$input.attr("autocomplete"),spellcheck:$input.attr("spellcheck"),style:$input.attr("style"),});$input.addClass(www.classes.input).attr({autocomplete:"off",spellcheck:false,});try{!$input.attr("dir")&&$input.attr("dir","auto");}catch(e){} 4502return $input;}
vendor: 4,897 bytes, lines 4503-4519
4503function getBackgroundStyles($el){return{backgroundAttachment:$el.css("background-attachment"),backgroundClip:$el.css("background-clip"),backgroundColor:$el.css("background-color"),backgroundImage:$el.css("background-image"),backgroundOrigin:$el.css("background-origin"),backgroundPosition:$el.css("background-position"),backgroundRepeat:$el.css("background-repeat"),backgroundSize:$el.css("background-size"),};} 4504function revert($input){var www,$wrapper;www=$input.data(keys.www);$wrapper=$input.parent().filter(www.selectors.wrapper);_.each($input.data(keys.attrs),function(val,key){_.isUndefined(val)?$input.removeAttr(key):$input.attr(key,val);});$input.removeData(keys.typeahead).removeData(keys.www).removeData(keys.attr).removeClass(www.classes.input);if($wrapper.length){$input.detach().insertAfter($wrapper);$wrapper.remove();}} 4505function $elOrNull(obj){var isValid,$el;isValid=_.isJQuery(obj)||_.isElement(obj);$el=isValid?$(obj).first():[];return $el.length?$el:null;}})();});; 4506/*! 4507 * typeahead.js 0.11.1 4508 * https://github.com/twitter/typeahead.js 4509 * Copyright 2013-2015 Twitter, Inc. and other contributors; Licensed MIT 4510 */ 4511(function(root,factory){if(typeof define==="function"&&define.amd){define("bloodhound",["jquery"],function(a0){return(root["Bloodhound"]=factory(a0));});}else if(typeof exports==="object"){module.exports=factory(require("jquery"));}else{root["Bloodhound"]=factory(jQuery);}})(this,function($){var _=(function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:false;},isBlankString:function(str){return!str||/^\s*$/.test(str);},escapeRegExChars:function(str){return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");},isString:function(obj){return typeof obj==="string";},isNumber:function(obj){return typeof obj==="number";},isArray:$.isArray,isFunction:$.isFunction,isObject:$.isPlainObject,isUndefined:function(obj){return typeof obj==="undefined";},isElement:function(obj){return!!(obj&&obj.nodeType===1);},isJQuery:function(obj){return obj instanceof $;},toStr:function toStr(s){return _.isUndefined(s)||s===null?"":s+"";},bind:$.proxy,each:function(collection,cb){$.each(collection,reverseArgs);function reverseArgs(index,value){return cb(value,index);}},map:$.map,filter:$.grep,every:function(obj,test){var result=true;if(!obj){return result;} 4512$.each(obj,function(key,val){if(!(result=test.call(null,val,key,obj))){return false;}});return!!result;},some:function(obj,test){var result=false;if(!obj){return result;} 4513$.each(obj,function(key,val){if((result=test.call(null,val,key,obj))){return false;}});return!!result;},mixin:$.extend,identity:function(x){return x;},clone:function(obj){return $.extend(true,{},obj);},getIdGenerator:function(){var counter=0;return function(){return counter++;};},templatify:function templatify(obj){return $.isFunction(obj)?obj:template;function template(){return String(obj);}},defer:function(fn){setTimeout(fn,0);},debounce:function(func,wait,immediate){var timeout,result;return function(){var context=this,args=arguments,later,callNow;later=function(){timeout=null;if(!immediate){result=func.apply(context,args);}};callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow){result=func.apply(context,args);} 4514return result;};},throttle:function(func,wait){var context,args,timeout,result,previous,later;previous=0;later=function(){previous=new Date();timeout=null;result=func.apply(context,args);};return function(){var now=new Date(),remaining=wait-(now-previous);context=this;args=arguments;if(remaining<=0){clearTimeout(timeout);timeout=null;previous=now;result=func.apply(context,args);}else if(!timeout){timeout=setTimeout(later,remaining);} 4515return result;};},stringify:function(val){return _.isString(val)?val:JSON.stringify(val);},noop:function(){},};})();var VERSION="0.11.1";var tokenizers=(function(){"use strict";return{nonword:nonword,whitespace:whitespace,obj:{nonword:getObjTokenizer(nonword),whitespace:getObjTokenizer(whitespace),},};function whitespace(str){str=_.toStr(str);return str?str.split(/\s+/):[];} 4516function nonword(str){str=_.toStr(str);return str?str.split(/\W+/):[];} 4517function getObjTokenizer(tokenizer){return function setKey(keys){keys=_.isArray(keys)?keys:[].slice.call(arguments,0);return function tokenize(o){var tokens=[];_.each(keys,function(k){tokens=tokens.concat(tokenizer(_.toStr(o[k])));});return tokens;};};}})();var LruCache=(function(){"use strict";function LruCache(maxSize){this.maxSize=_.isNumber(maxSize)?maxSize:100;this.reset();if(this.maxSize<=0){this.set=this.get=$.noop;}} 4518_.mixin(LruCache.prototype,{set:function set(key,val){var tailItem=this.list.tail,node;if(this.size>=this.maxSize){this.list.remove(tailItem);delete this.hash[tailItem.key];this.size--;} 4519if((node=this.hash[key])){node.val=val;this.list.moveToFront(node);}
4519else{node=new Node(key,val);this.list.add(node);this.hash[key]=node;this.size++;}},get:function get(key){var node=this.hash[key];if(node){this.list.moveToFront(node);return node.val;}},reset:function reset(){this.size=0;this.hash={};this.list=new List();},});function List(){this.head=this.tail=null;} 4520_.mixin(List.prototype,{add:function add(node){if(this.head){node.next=this.head;this.head.prev=node;} 4521this.head=node;this.tail=this.tail||node;},remove:function remove(node){node.prev?(node.prev.next=node.next):(this.head=node.next);node.next?(node.next.prev=node.prev):(this.tail=node.prev);},moveToFront:function(node){this.remove(node);this.add(node);},});function Node(key,val){this.key=key;this.val=val;this.prev=this.next=null;} 4522return LruCache;})();var PersistentStorage=(function(){"use strict";var LOCAL_STORAGE;try{LOCAL_STORAGE=window.localStorage;LOCAL_STORAGE.setItem("~~~","!");LOCAL_STORAGE.removeItem("~~~");}catch(err){LOCAL_STORAGE=null;} 4523function PersistentStorage(namespace,override){this.prefix=["__",namespace,"__"].join("");this.ttlKey="__ttl__";this.keyMatcher=new RegExp("^"+_.escapeRegExChars(this.prefix));this.ls=override||LOCAL_STORAGE;!this.ls&&this._noop();} 4524_.mixin(PersistentStorage.prototype,{_prefix:function(key){return this.prefix+key;},_ttlKey:function(key){return this._prefix(key)+this.ttlKey;},_noop:function(){this.get=this.set=this.remove=this.clear=this.isExpired=_.noop;},_safeSet:function(key,val){try{this.ls.setItem(key,val);}catch(err){if(err.name==="QuotaExceededError"){this.clear();this._noop();}}},get:function(key){if(this.isExpired(key)){this.remove(key);} 4525return decode(this.ls.getItem(this._prefix(key)));},set:function(key,val,ttl){if(_.isNumber(ttl)){this._safeSet(this._ttlKey(key),encode(now()+ttl));}else{this.ls.removeItem(this._ttlKey(key));} 4526return this._safeSet(this._prefix(key),encode(val));},remove:function(key){this.ls.removeItem(this._ttlKey(key));this.ls.removeItem(this._prefix(key));return this;},clear:function(){var i,keys=gatherMatchingKeys(this.keyMatcher);for(i=keys.length;i--;){this.remove(keys[i]);} 4527return this;},isExpired:function(key){var ttl=decode(this.ls.getItem(this._ttlKey(key)));return _.isNumber(ttl)&&now()>ttl?true:false;},});return PersistentStorage;function now(){return new Date().getTime();} 4528function encode(val){return JSON.stringify(_.isUndefined(val)?null:val);} 4529function decode(val){return $.parseJSON(val);} 4530function gatherMatchingKeys(keyMatcher){var i,key,keys=[],len=LOCAL_STORAGE.length;for(i=0;i<len;i++){if((key=LOCAL_STORAGE.key(i)).match(keyMatcher)){keys.push(key.replace(keyMatcher,""));}} 4531return keys;}})();var Transport=(function(){"use strict";var pendingRequestsCount=0,pendingRequests={},maxPendingRequests=6,sharedCache=new LruCache(10);function Transport(o){o=o||{};this.cancelled=false;this.lastReq=null;this._send=o.transport;this._get=o.limiter?o.limiter(this._get):this._get;this._cache=o.cache===false?new LruCache(0):sharedCache;} 4532Transport.setMaxPendingRequests=function setMaxPendingRequests(num){maxPendingRequests=num;};Transport.resetCache=function resetCache(){sharedCache.reset();};_.mixin(Transport.prototype,{_fingerprint:function fingerprint(o){o=o||{};return o.url+o.type+$.param(o.data||{});},_get:function(o,cb){var that=this,fingerprint,jqXhr;fingerprint=this._fingerprint(o);if(this.cancelled||fingerprint!==this.lastReq){return;} 4533if((jqXhr=pendingRequests[fingerprint])){jqXhr.done(done).fail(fail);}else if(pendingRequestsCount<maxPendingRequests){pendingRequestsCount++;pendingRequests[fingerprint]=this._send(o).done(done).fail(fail).always(always);}else{this.onDeckRequestArgs=[].slice.call(arguments,0);} 4534function done(resp){cb(null,resp);that._cache.set(fingerprint,resp);} 4535function fail(){cb(true);} 4536function always(){pendingRequestsCount--;delete pendingRequests[fingerprint];if(that.onDeckRequestArgs){that._get.apply(that,that.onDeckRequestArgs);that.onDeckRequestArgs=null;}}},get:function(o,cb){var resp,fingerprint;cb=cb||$.noop;o=_.isString(o)?{url:o,}:o||{};fingerprint=this._fingerprint(o);this.cancelled=false;this.lastReq=fingerprint;if((resp=this._cache.get(fingerprint))){cb(null,resp);}else{this._get(o,cb);}},cancel:function(){this.cancelled=true;},});return Transport;})();var SearchIndex=(window.SearchIndex=(function(){"use strict";var CHILDREN="c",IDS="i";function SearchIndex(o){o=o||{};if(!o.datumTokenizer||!o.queryTokenizer){$.error("datumTokenizer and queryTokenizer are both required");} 4537this.identify=o.identify||_.stringify;this.datumTokenizer=o.datumTokenizer;this.queryTokenizer=o.queryTokenizer;this.reset();} 4538_.mixin(SearchIndex.prototype,{bootstrap:function bootstrap(o){this.datums=o.datums;this.trie=o.trie;},add:function(data){var that=this;data=_.isArray(data)?data:[data];_.each(data,function(datum){var id,tokens;that.datums[(id=that.identify(datum))]=datum;tokens=normalizeTokens(that.datumTokenizer(datum));_.each(tokens,function(token){var node,chars,ch;node=that.trie;chars=token.split("");while((ch=chars.shift())){node=node[CHILDREN][ch]||(node[CHILDREN][ch]=newNode());node[IDS].push(id);}}
4538);});},get:function get(ids){var that=this;return _.map(ids,function(id){return that.datums[id];});},search:function search(query){var that=this,tokens,matches;tokens=normalizeTokens(this.queryTokenizer(query));_.each(tokens,function(token){var node,chars,ch,ids;if(matches&&matches.length===0){return false;} 4539node=that.trie;chars=token.split("");while(node&&(ch=chars.shift())){node=node[CHILDREN][ch];} 4540if(node&&chars.length===0){ids=node[IDS].slice(0);matches=matches?getIntersection(matches,ids):ids;}else{matches=[];return false;}});return matches?_.map(unique(matches),function(id){return that.datums[id];}):[];},all:function all(){var values=[];for(var key in this.datums){values.push(this.datums[key]);} 4541return values;},reset:function reset(){this.datums={};this.trie=newNode();},serialize:function serialize(){return{datums:this.datums,trie:this.trie,};},});return SearchIndex;function normalizeTokens(tokens){tokens=_.filter(tokens,function(token){return!!token;});tokens=_.map(tokens,function(token){return token.toLowerCase();});return tokens;} 4542function newNode(){var node={};node[IDS]=[];node[CHILDREN]={};return node;} 4543function unique(array){var seen={},uniques=[];for(var i=0,len=array.length;i<len;i++){if(!seen[array[i]]){seen[array[i]]=true;uniques.push(array[i]);}} 4544return uniques;} 4545function getIntersection(arrayA,arrayB){var ai=0,bi=0,intersection=[];arrayA=arrayA.sort();arrayB=arrayB.sort();var lenArrayA=arrayA.length,lenArrayB=arrayB.length;while(ai<lenArrayA&&bi<lenArrayB){if(arrayA[ai]<arrayB[bi]){ai++;}else if(arrayA[ai]>arrayB[bi]){bi++;}else{intersection.push(arrayA[ai]);ai++;bi++;}} 4546return intersection;}})());var Prefetch=(function(){"use strict";var keys;keys={data:"data",protocol:"protocol",thumbprint:"thumbprint",};function Prefetch(o){this.url=o.url;this.ttl=o.ttl;this.cache=o.cache;this.prepare=o.prepare;this.transform=o.transform;this.transport=o.transport;this.thumbprint=o.thumbprint;this.storage=new PersistentStorage(o.cacheKey);} 4547_.mixin(Prefetch.prototype,{_settings:function settings(){return{url:this.url,type:"GET",dataType:"json",};},store:function store(data){if(!this.cache){return;} 4548this.storage.set(keys.data,data,this.ttl);this.storage.set(keys.protocol,location.protocol,this.ttl);this.storage.set(keys.thumbprint,this.thumbprint,this.ttl);},fromCache:function fromCache(){var stored={},isExpired;if(!this.cache){return null;} 4549stored.data=this.storage.get(keys.data);stored.protocol=this.storage.get(keys.protocol);stored.thumbprint=this.storage.get(keys.thumbprint);isExpired=stored.thumbprint!==this.thumbprint||stored.protocol!==location.protocol;return stored.data&&!isExpired?stored.data:null;},fromNetwork:function(cb){var that=this,settings;if(!cb){return;} 4550settings=this.prepare(this._settings());this.transport(settings).fail(onError).done(onResponse);function onError(){cb(true);} 4551function onResponse(resp){cb(null,that.transform(resp));}},clear:function clear(){this.storage.clear();return this;},});return Prefetch;})();var Remote=(function(){"use strict";function Remote(o){this.url=o.url;this.prepare=o.prepare;this.transform=o.transform;this.transport=new Transport({cache:o.cache,limiter:o.limiter,transport:o.transport,});} 4552_.mixin(Remote.prototype,{_settings:function settings(){return{url:this.url,type:"GET",dataType:"json",};},get:function get(query,cb){var that=this,settings;if(!cb){return;} 4553query=query||"";settings=this.prepare(query,this._settings());return this.transport.get(settings,onResponse);function onResponse(err,resp){err?cb([]):cb(that.transform(resp));}},cancelLastRequest:function cancelLastRequest(){this.transport.cancel();},});return Remote;})();var oParser=(function(){"use strict";return function parse(o){var defaults,sorter;defaults={initialize:true,identify:_.stringify,datumTokenizer:null,queryTokenizer:null,sufficient:5,sorter:null,local:[],prefetch:null,remote:null,};o=_.mixin(defaults,o||{});!o.datumTokenizer&&$.error("datumTokenizer is required");!o.queryTokenizer&&$.error("queryTokenizer is required");sorter=o.sorter;o.sorter=sorter?function(x){return x.sort(sorter);}:_.identity;o.local=_.isFunction(o.local)?o.local():o.local;o.prefetch=parsePrefetch(o.prefetch);o.remote=parseRemote(o.remote);return o;};function parsePrefetch(o){var defaults;if(!o){return null;} 4554defaults={url:null,ttl:24*60*60*1e3,cache:true,cacheKey:null,thumbprint:"",prepare:_.identity,transform:_.identity,transport:null,};o=_.isString(o)?{url:o,}:o;o=_.mixin(defaults,o);!o.url&&$.error("prefetch requires url to be set");o.transform=o.filter||o.transform;o.cacheKey=o.cacheKey||o.url;o.thumbprint=VERSION+o.thumbprint;o.transport=o.transport?callbackToDeferred(o.transport):$.ajax;return o;} 4555function parseRemote(o){var defaults;if(!o){return;} 4556defaults={url:null,cache:true,prepare:null,replace:null,wildcard:null,limiter:null,rateLimitBy:"debounce",rateLimitWait:300,transform:_.identity,transport:null,};o=_.isString(o)?{url:o,}:o;o=_.mixin(defaults,o);!o.url&&$.error("remote requires url to be set");o.transform=o.filter||o.transform;
4556o.prepare=toRemotePrepare(o);o.limiter=toLimiter(o);o.transport=o.transport?callbackToDeferred(o.transport):$.ajax;delete o.replace;delete o.wildcard;delete o.rateLimitBy;delete o.rateLimitWait;return o;} 4557function toRemotePrepare(o){var prepare,replace,wildcard;prepare=o.prepare;replace=o.replace;wildcard=o.wildcard;if(prepare){return prepare;} 4558if(replace){prepare=prepareByReplace;}else if(o.wildcard){prepare=prepareByWildcard;}else{prepare=idenityPrepare;} 4559return prepare;function prepareByReplace(query,settings){settings.url=replace(settings.url,query);return settings;} 4560function prepareByWildcard(query,settings){settings.url=settings.url.replace(wildcard,encodeURIComponent(query));return settings;} 4561function idenityPrepare(query,settings){return settings;}} 4562function toLimiter(o){var limiter,method,wait;limiter=o.limiter;method=o.rateLimitBy;wait=o.rateLimitWait;if(!limiter){limiter=/^throttle$/i.test(method)?throttle(wait):debounce(wait);} 4563return limiter;function debounce(wait){return function debounce(fn){return _.debounce(fn,wait);};} 4564function throttle(wait){return function throttle(fn){return _.throttle(fn,wait);};}} 4565function callbackToDeferred(fn){return function wrapper(o){var deferred=$.Deferred();fn(o,onSuccess,onError);return deferred;function onSuccess(resp){_.defer(function(){deferred.resolve(resp);});} 4566function onError(err){_.defer(function(){deferred.reject(err);});}};}})();var Bloodhound=(function(){"use strict";var old;old=window&&window.Bloodhound;function Bloodhound(o){o=oParser(o);this.sorter=o.sorter;this.identify=o.identify;this.sufficient=o.sufficient;this.local=o.local;this.remote=o.remote?new Remote(o.remote):null;this.prefetch=o.prefetch?new Prefetch(o.prefetch):null;this.index=new SearchIndex({identify:this.identify,datumTokenizer:o.datumTokenizer,queryTokenizer:o.queryTokenizer,});o.initialize!==false&&this.initialize();} 4567Bloodhound.noConflict=function noConflict(){window&&(window.Bloodhound=old);return Bloodhound;};Bloodhound.tokenizers=tokenizers;
4567_.mixin(Bloodhound.prototype,{__ttAdapter:function ttAdapter(){var that=this;return this.remote?withAsync:withoutAsync;function withAsync(query,sync,async){return that.search(query,sync,async);} 4568function withoutAsync(query,sync){return that.search(query,sync);}},_loadPrefetch:function loadPrefetch(){var that=this,deferred,serialized;deferred=$.Deferred();if(!this.prefetch){deferred.resolve();}else if((serialized=this.prefetch.fromCache())){this.index.bootstrap(serialized);deferred.resolve();}else{this.prefetch.fromNetwork(done);} 4569return deferred.promise();function done(err,data){if(err){return deferred.reject();} 4570that.add(data);that.prefetch.store(that.index.serialize());deferred.resolve();}},_initialize:function initialize(){var that=this,deferred;this.clear();(this.initPromise=this._loadPrefetch()).done(addLocalToIndex);return this.initPromise;function addLocalToIndex(){that.add(that.local);}},initialize:function initialize(force){return!this.initPromise||force?this._initialize():this.initPromise;},add:function add(data){this.index.add(data);return this;},get:function get(ids){ids=_.isArray(ids)?ids:[].slice.call(arguments);return this.index.get(ids);},search:function search(query,sync,async){var that=this,local;local=this.sorter(this.index.search(query));sync(this.remote?local.slice():local);if(this.remote&&local.length<this.sufficient){this.remote.get(query,processRemote);}else if(this.remote){this.remote.cancelLastRequest();} 4571return this;function processRemote(remote){var nonDuplicates=[];_.each(remote,function(r){!_.some(local,function(l){return that.identify(r)===that.identify(l);})&&nonDuplicates.push(r);});async&&async(nonDuplicates);}},all:function all(){return this.index.all();},clear:function clear(){this.index.reset();return this;},clearPrefetchCache:function clearPrefetchCache(){this.prefetch&&this.prefetch.clear();return this;},clearRemoteCache:function clearRemoteCache(){Transport.resetCache();return this;},ttAdapter:function ttAdapter(){return this.__ttAdapter();},});return Bloodhound;})();return Bloodhound;}); 4572;/**! 4573 4574 @license 4575 handlebars v4.7.9 4576 4577Copyright (C) 2011-2019 by Yehuda Katz 4578 4579Permission is hereby granted, free of charge, to any person obtaining a copy 4580of this software and associated documentation files (the "Software"), to deal 4581in the Software without restriction, including without limitation the rights 4582to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 4583copies of the Software, and to permit persons to whom the Software is 4584furnished to do so, subject to the following conditions: 4585 4586The above copyright notice and this permission notice shall be included in 4587all copies or substantial portions of the Software. 4588 4589THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 4590IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 4591FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 4592AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 4593LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 4594OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 4595THE SOFTWARE. 4596 4597*/ 4598!(function (a, b) { 4599 "object" == typeof exports && "object" == typeof module 4600 ? (module.exports = b()) 4601 : "function" == typeof define && define.amd 4602 ? define([], b) 4603 : "object" == typeof exports 4604 ? (exports.Handlebars = b()) 4605 : (a.Handlebars = b()) 4606})(this, function () { 4607 return (function (a) { 4608 function b(d) { 4609 if (c[d]) return c[d].exports 4610 var e = (c[d] = { exports: {}, id: d, loaded: !1 }) 4611 return a[d].call(e.exports, e, e.exports, b), (e.loaded = !0), e.exports 4612 } 4613 var c = {} 4614 return (b.m = a), (b.c = c), (b.p = ""), b(0) 4615 })([ 4616 function (a, b, c) { 4617 "use strict" 4618 function d() { 4619 var a = r() 4620 return ( 4621 (a.compile = function (b, c) { 4622 return k.compile(b, c, a) 4623 }), 4624 (a.precompile = function (b, c) { 4625 return k.precompile(b, c, a) 4626 }), 4627 (a.AST = i["default"]), 4628 (a.Compiler = k.Compiler), 4629 (a.JavaScriptCompiler = m["default"]), 4630 (a.Parser = j.parser), 4631 (a.parse = j.parse), 4632 (a.parseWithoutProcessing = j.parseWithoutProcessing), 4633 a 4634 ) 4635 } 4636 var e = c(1)["default"] 4637 b.__esModule = !0 4638 var f = c(2), 4639 g = e(f), 4640 h = c(83), 4641 i = e(h), 4642 j = c(84), 4643 k = c(89),
4644 l = c(90), 4645 m = e(l), 4646 n = c(87), 4647 o = e(n), 4648 p = c(82), 4649 q = e(p), 4650 r = g["default"].create, 4651 s = d() 4652 ;(s.create = d), 4653 q["default"](s), 4654 (s.Visitor = o["default"]), 4655 (s["default"] = s), 4656 (b["default"] = s), 4657 (a.exports = b["default"]) 4658 }, 4659 function (a, b) { 4660 "use strict" 4661 ;(b["default"] = function (a) { 4662 return a && a.__esModule ? a : { default: a } 4663 }), 4664 (b.__esModule = !0) 4665 }, 4666 function (a, b, c) { 4667 "use strict" 4668 function d() { 4669 var a = new h.HandlebarsEnvironment() 4670 return ( 4671 n.extend(a, h), 4672 (a.SafeString = j["default"]), 4673 (a.Exception = l["default"]), 4674 (a.Utils = n), 4675 (a.escapeExpression = n.escapeExpression), 4676 (a.VM = p), 4677 (a.template = function (b) { 4678 return p.template(b, a) 4679 }), 4680 a 4681 ) 4682 } 4683 var e = c(3)["default"], 4684 f = c(1)["default"] 4685 b.__esModule = !0 4686 var g = c(4), 4687 h = e(g), 4688 i = c(76), 4689 j = f(i), 4690 k = c(6), 4691 l = f(k), 4692 m = c(5), 4693 n = e(m), 4694 o = c(77), 4695 p = e(o), 4696 q = c(82), 4697 r = f(q), 4698 s = d() 4699 ;(s.create = d), 4700 r["default"](s), 4701 (s["default"] = s), 4702 (b["default"] = s), 4703 (a.exports = b["default"]) 4704 }, 4705 function (a, b) { 4706 "use strict" 4707 ;(b["default"] = function (a) { 4708 if (a && a.__esModule) return a 4709 var b = {} 4710 if (null != a) for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]) 4711 return (b["default"] = a), b 4712 }), 4713 (b.__esModule = !0) 4714 }, 4715 function (a, b, c) { 4716 "use strict" 4717 function d(a, b, c) { 4718 ;(this.helpers = a || {}), 4719 (this.partials = b || {}), 4720 (this.decorators = c || {}), 4721 i.registerDefaultHelpers(this), 4722 j.registerDefaultDecorators(this) 4723 } 4724 var e = c(1)["default"] 4725 ;(b.__esModule = !0), (b.HandlebarsEnvironment = d) 4726 var f = c(5), 4727 g = c(6), 4728 h = e(g), 4729 i = c(10), 4730 j = c(70), 4731 k = c(72), 4732 l = e(k), 4733 m = c(73), 4734 n = "4.7.9" 4735 b.VERSION = n 4736 var o = 8 4737 b.COMPILER_REVISION = o 4738 var p = 7 4739 b.LAST_COMPATIBLE_COMPILER_REVISION = p 4740 var q = { 4741 1: "<= 1.0.rc.2", 4742 2: "== 1.0.0-rc.3", 4743 3: "== 1.0.0-rc.4", 4744 4: "== 1.x.x", 4745 5: "== 2.0.0-alpha.x", 4746 6: ">= 2.0.0-beta.1", 4747 7: ">= 4.0.0 <4.3.0", 4748 8: ">= 4.3.0", 4749 } 4750 b.REVISION_CHANGES = q 4751 var r = "[object Object]" 4752 d.prototype = { 4753 constructor: d, 4754 logger: l["default"], 4755 log: l["default"].log, 4756 registerHelper: function (a, b) { 4757 if (f.toString.call(a) === r) { 4758 if (b) throw new h["default"]("Arg not supported with multiple helpers") 4759 f.extend(this.helpers, a) 4760 } else this.helpers[a] = b 4761 }, 4762 unregisterHelper: function (a) { 4763 delete this.helpers[a] 4764 }, 4765 registerPartial: function (a, b) { 4766 if (f.toString.call(a) === r) f.extend(this.partials, a) 4767 else { 4768 if ("undefined" == typeof b) 4769 throw new h["default"]( 4770 'Attempting to register a partial called "' + a + '" as undefined', 4771 ) 4772 this.partials[a] = b 4773 } 4774 }, 4775 unregisterPartial: function (a) { 4776 delete this.partials[a] 4777 }, 4778 registerDecorator: function (a, b) { 4779 if (f.toString.call(a) === r) { 4780 if (b) throw new h["default"]("Arg not supported with multiple decorators") 4781 f.extend(this.decorators, a) 4782 } else this.decorators[a] = b 4783 }, 4784 unregisterDecorator: function (a) { 4785 delete this.decorators[a] 4786 }, 4787 resetLoggedPropertyAccesses: function () { 4788 m.resetLoggedProperties() 4789 }, 4790 } 4791 var s = l["default"].log 4792 ;(b.log = s), (b.createFrame = f.createFrame), (b.logger = l["default"]) 4793 }, 4794 function (a, b) { 4795 "use strict" 4796 function c(a) { 4797 return k[a] 4798 } 4799 function d(a) { 4800 for (var b = 1; b < arguments.length; b++) 4801 for (var c in arguments[b]) 4802 Object.prototype.hasOwnProperty.call(arguments[b], c) && (a[c] = arguments[b][c]) 4803 return a 4804 } 4805 function e(a, b) { 4806 for (var c = 0, d = a.length; c < d; c++) if (a[c] === b) return c 4807 return -1 4808 } 4809 function f(a) { 4810 if ("string" != typeof a) {
4811 if (a && a.toHTML) return a.toHTML() 4812 if (null == a) return "" 4813 if (!a) return a + "" 4814 a = "" + a 4815 } 4816 return m.test(a) ? a.replace(l, c) : a 4817 } 4818 function g(a) { 4819 return (!a && 0 !== a) || !(!p(a) || 0 !== a.length) 4820 } 4821 function h(a) { 4822 var b = d({}, a) 4823 return (b._parent = a), b 4824 } 4825 function i(a, b) { 4826 return (a.path = b), a 4827 } 4828 function j(a, b) { 4829 return (a ? a + "." : "") + b 4830 } 4831 ;(b.__esModule = !0), 4832 (b.extend = d), 4833 (b.indexOf = e), 4834 (b.escapeExpression = f), 4835 (b.isEmpty = g), 4836 (b.createFrame = h), 4837 (b.blockParams = i), 4838 (b.appendContextPath = j) 4839 var k = { 4840 "&": "&", 4841 "<": "<", 4842 ">": ">", 4843 '"': """, 4844 "'": "'", 4845 "`": "`", 4846 "=": "=", 4847 }, 4848 l = /[&<>"'`=]/g, 4849 m = /[&<>"'`=]/, 4850 n = Object.prototype.toString 4851 b.toString = n 4852 var o = function (a) { 4853 return "function" == typeof a 4854 } 4855 o(/x/) && 4856 (b.isFunction = o = 4857 function (a) { 4858 return "function" == typeof a && "[object Function]" === n.call(a) 4859 }), 4860 (b.isFunction = o) 4861 var p = 4862 Array.isArray || 4863 function (a) { 4864 return !(!a || "object" != typeof a) && "[object Array]" === n.call(a) 4865 } 4866 b.isArray = p 4867 }, 4868 function (a, b, c) { 4869 "use strict" 4870 function d(a, b) { 4871 var c = b && b.loc, 4872 g = void 0, 4873 h = void 0, 4874 i = void 0, 4875 j = void 0 4876 c && 4877 ((g = c.start.line), 4878 (h = c.end.line), 4879 (i = c.start.column), 4880 (j = c.end.column), 4881 (a += " - " + g + ":" + i)) 4882 for (var k = Error.prototype.constructor.call(this, a), l = 0; l < f.length; l++) 4883 this[f[l]] = k[f[l]] 4884 Error.captureStackTrace && Error.captureStackTrace(this, d) 4885 try { 4886 c && 4887 ((this.lineNumber = g), 4888 (this.endLineNumber = h), 4889 e 4890 ? (Object.defineProperty(this, "column", { value: i, enumerable: !0 }), 4891 Object.defineProperty(this, "endColumn", { value: j, enumerable: !0 })) 4892 : ((this.column = i), (this.endColumn = j))) 4893 } catch (m) {} 4894 } 4895 var e = c(7)["default"] 4896 b.__esModule = !0 4897 var f = [ 4898 "description", 4899 "fileName", 4900 "lineNumber", 4901 "endLineNumber", 4902 "message", 4903 "name", 4904 "number", 4905 "stack", 4906 ] 4907 ;(d.prototype = new Error()), (b["default"] = d), (a.exports = b["default"]) 4908 }, 4909 function (a, b, c) { 4910 a.exports = { default: c(8), __esModule: !0 } 4911 }, 4912 function (a, b, c) { 4913 var d = c(9) 4914 a.exports = function (a, b, c) { 4915 return d.setDesc(a, b, c) 4916 } 4917 }, 4918 function (a, b) { 4919 var c = Object 4920 a.exports = { 4921 create: c.create, 4922 getProto: c.getPrototypeOf, 4923 isEnum: {}.propertyIsEnumerable, 4924 getDesc: c.getOwnPropertyDescriptor, 4925 setDesc: c.defineProperty, 4926 setDescs: c.defineProperties, 4927 getKeys: c.keys, 4928 getNames: c.getOwnPropertyNames, 4929 getSymbols: c.getOwnPropertySymbols, 4930 each: [].forEach, 4931 } 4932 }, 4933 function (a, b, c) { 4934 "use strict" 4935 function d(a) { 4936 h["default"](a), 4937 j["default"](a), 4938 l["default"](a), 4939 n["default"](a), 4940 p["default"](a), 4941 r["default"](a), 4942 t["default"](a) 4943 } 4944 function e(a, b, c) { 4945 a.helpers[b] && ((a.hooks[b] = a.helpers[b]), c || (a.helpers[b] = void 0)) 4946 } 4947 var f = c(1)["default"] 4948 ;(b.__esModule = !0), (b.registerDefaultHelpers = d), (b.moveHelperToHooks = e) 4949 var g = c(11), 4950 h = f(g), 4951 i = c(12), 4952 j = f(i), 4953 k = c(65), 4954 l = f(k), 4955 m = c(66), 4956 n = f(m), 4957 o = c(67), 4958 p = f(o), 4959 q = c(68), 4960 r = f(q), 4961 s = c(69), 4962 t = f(s) 4963 }, 4964 function (a, b, c) { 4965 "use strict" 4966 b.__esModule = !0 4967 var d = c(5) 4968 ;(b["default"] = function (a) { 4969 a.registerHelper("blockHelperMissing", function (b, c) { 4970 var e = c.inverse, 4971 f = c.fn 4972 if (b === !0) return f(this) 4973 if (b === !1 || null == b) return e(this) 4974 if (d.isArray(b)) 4975 return b.length > 0 ? (c.ids && (c.ids = [c.name]), a.helpers.each(b, c)) : e(this) 4976 if (c.data && c.ids) { 4977 var g = d.createFrame(c.data) 4978 ;(g.contextPath = d.appendContextPath(c.data.contextPath, c.name)), (c = { data: g }) 4979 } 4980 return f(b, c) 4981 }) 4982 }), 4983 (a.exports = b["default"]) 4984 }, 4985 function (a, b, c) { 4986 "use strict" 4987 var d = c(13)["default"], 4988 e = c(43)["default"], 4989 f = c(55)["default"], 4990 g = c(60)["default"], 4991 h = c(1)["default"] 4992 b.__esModule = !0 4993 var i = c(5), 4994 j = c(6), 4995 k = h(j) 4996 ;(b["default"] = function (a) { 4997 a.registerHelper("each", function (a, b) { 4998 function c(b, c, d) { 4999 n && 5000 ((n.key = b), 5001 (n.index = c), 5002 (n.first = 0 === c), 5003 (n.last = !!d), 5004 o && (n.contextPath = o + b)), 5005 (m += h(a[b], { data: n, blockParams: i.blockParams([a[b], b], [o + b, null]) })) 5006 } 5007 if (!b) throw new k["default"]("Must pass iterator to #each") 5008 var h = b.fn, 5009 j = b.inverse, 5010 l = 0, 5011 m = "", 5012 n = void 0, 5013 o = void 0 5014 if (
5015 (b.data && b.ids && (o = i.appendContextPath(b.data.contextPath, b.ids[0]) + "."), 5016 i.isFunction(a) && (a = a.call(this)), 5017 b.data && (n = i.createFrame(b.data)), 5018 a && "object" == typeof a) 5019 ) 5020 if (i.isArray(a)) 5021 for (var p = a.length; l < p; l++) l in a && c(l, l, l === a.length - 1) 5022 else if ("function" == typeof d && a[e]) { 5023 for (var q = [], r = f(a), s = r.next(); !s.done; s = r.next()) q.push(s.value) 5024 a = q 5025 for (var p = a.length; l < p; l++) c(l, l, l === a.length - 1) 5026 } else 5027 !(function () { 5028 var b = void 0 5029 g(a).forEach(function (a) { 5030 void 0 !== b && c(b, l - 1), (b = a), l++ 5031 }), 5032 void 0 !== b && c(b, l - 1, !0) 5033 })() 5034 return 0 === l && (m = j(this)), m 5035 }) 5036 }), 5037 (a.exports = b["default"]) 5038 }, 5039 function (a, b, c) { 5040 a.exports = { default: c(14), __esModule: !0 } 5041 }, 5042 function (a, b, c) { 5043 c(15), c(42), (a.exports = c(21).Symbol) 5044 }, 5045 function (a, b, c) { 5046 "use strict" 5047 var d = c(9), 5048 e = c(16), 5049 f = c(17), 5050 g = c(18), 5051 h = c(20), 5052 i = c(24), 5053 j = c(19), 5054 k = c(27), 5055 l = c(28), 5056 m = c(30), 5057 n = c(29), 5058 o = c(31), 5059 p = c(36), 5060 q = c(37), 5061 r = c(38), 5062 s = c(39), 5063 t = c(32), 5064 u = c(26), 5065 v = d.getDesc, 5066 w = d.setDesc, 5067 x = d.create, 5068 y = p.get, 5069 z = e.Symbol, 5070 A = e.JSON, 5071 B = A && A.stringify, 5072 C = !1, 5073 D = n("_hidden"), 5074 E = d.isEnum, 5075 F = k("symbol-registry"), 5076 G = k("symbols"), 5077 H = "function" == typeof z, 5078 I = Object.prototype, 5079 J = 5080 g && 5081 j(function () { 5082 return ( 5083 7 != 5084 x( 5085 w({}, "a", { 5086 get: function () { 5087 return w(this, "a", { value: 7 }).a 5088 }, 5089 }), 5090 ).a 5091 ) 5092 }) 5093 ? function (a, b, c) { 5094 var d = v(I, b) 5095 d && delete I[b], w(a, b, c), d && a !== I && w(I, b, d) 5096 } 5097 : w, 5098 K = function (a) { 5099 var b = (G[a] = x(z.prototype)) 5100 return ( 5101 (b._k = a), 5102 g && 5103 C && 5104 J(I, a, { 5105 configurable: !0, 5106 set: function (b) { 5107 f(this, D) && f(this[D], a) && (this[D][a] = !1), J(this, a, u(1, b)) 5108 }, 5109 }), 5110 b 5111 ) 5112 }, 5113 L = function (a) { 5114 return "symbol" == typeof a 5115 }, 5116 M = function (a, b, c) { 5117 return c && f(G, b) 5118 ? (c.enumerable 5119 ? (f(a, D) && a[D][b] && (a[D][b] = !1), (c = x(c, { enumerable: u(0, !1) }))) 5120 : (f(a, D) || w(a, D, u(1, {})), (a[D][b] = !0)), 5121 J(a, b, c)) 5122 : w(a, b, c) 5123 }, 5124 N = function (a, b) { 5125 s(a) 5126 for (var c, d = q((b = t(b))), e = 0, f = d.length; f > e; ) M(a, (c = d[e++]), b[c]) 5127 return a 5128 }, 5129 O = function (a, b) { 5130 return void 0 === b ? x(a) : N(x(a), b) 5131 }, 5132 P = function (a) { 5133 var b = E.call(this, a) 5134 return !(b || !f(this, a) || !f(G, a) || (f(this, D) && this[D][a])) || b 5135 }, 5136 Q = function (a, b) { 5137 var c = v((a = t(a)), b) 5138 return !c || !f(G, b) || (f(a, D) && a[D][b]) || (c.enumerable = !0), c 5139 }, 5140 R = function (a) { 5141 for (var b, c = y(t(a)), d = [], e = 0; c.length > e; ) 5142 f(G, (b = c[e++])) || b == D || d.push(b) 5143 return d 5144 }, 5145 S = function (a) { 5146 for (var b, c = y(t(a)), d = [], e = 0; c.length > e; ) f(G, (b = c[e++])) && d.push(G[b]) 5147 return d 5148 }, 5149 T = function (a) { 5150 if (void 0 !== a && !L(a)) { 5151 for (var b, c, d = [a], e = 1, f = arguments; f.length > e; ) d.push(f[e++]) 5152 return ( 5153 (b = d[1]), 5154 "function" == typeof b && (c = b), 5155 (!c && r(b)) || 5156 (b = function (a, b) { 5157 if ((c && (b = c.call(this, a, b)), !L(b))) return b 5158 }), 5159 (d[1] = b), 5160 B.apply(A, d) 5161 ) 5162 } 5163 }, 5164 U = j(function () { 5165 var a = z() 5166 return "[null]" != B([a]) || "{}" != B({ a: a }) || "{}" != B(Object(a)) 5167 }) 5168 H || 5169 ((z = function () { 5170 if (L(this)) throw TypeError("Symbol is not a constructor") 5171 return K(m(arguments.length > 0 ? arguments[0] : void 0)) 5172 }), 5173 i(z.prototype, "toString", function () { 5174 return this._k 5175 }), 5176 (L = function (a) { 5177 return a instanceof z 5178 }), 5179 (d.create = O), 5180 (d.isEnum = P),
5181 (d.getDesc = Q), 5182 (d.setDesc = M), 5183 (d.setDescs = N), 5184 (d.getNames = p.get = R), 5185 (d.getSymbols = S), 5186 g && !c(41) && i(I, "propertyIsEnumerable", P, !0)) 5187 var V = { 5188 for: function (a) { 5189 return f(F, (a += "")) ? F[a] : (F[a] = z(a)) 5190 }, 5191 keyFor: function (a) { 5192 return o(F, a) 5193 }, 5194 useSetter: function () { 5195 C = !0 5196 }, 5197 useSimple: function () { 5198 C = !1 5199 }, 5200 } 5201 d.each.call( 5202 "hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split( 5203 ",", 5204 ), 5205 function (a) { 5206 var b = n(a) 5207 V[a] = H ? b : K(b) 5208 }, 5209 ), 5210 (C = !0), 5211 h(h.G + h.W, { Symbol: z }), 5212 h(h.S, "Symbol", V), 5213 h(h.S + h.F * !H, "Object", { 5214 create: O, 5215 defineProperty: M, 5216 defineProperties: N, 5217 getOwnPropertyDescriptor: Q, 5218 getOwnPropertyNames: R, 5219 getOwnPropertySymbols: S, 5220 }), 5221 A && h(h.S + h.F * (!H || U), "JSON", { stringify: T }), 5222 l(z, "Symbol"), 5223 l(Math, "Math", !0), 5224 l(e.JSON, "JSON", !0) 5225 }, 5226 function (a, b) { 5227 var c = (a.exports = 5228 "undefined" != typeof window && window.Math == Math 5229 ? window 5230 : "undefined" != typeof self && self.Math == Math 5231 ? self 5232 : Function("return this")()) 5233 "number" == typeof __g && (__g = c) 5234 }, 5235 function (a, b) { 5236 var c = {}.hasOwnProperty 5237 a.exports = function (a, b) { 5238 return c.call(a, b) 5239 } 5240 }, 5241 function (a, b, c) { 5242 a.exports = !c(19)(function () { 5243 return ( 5244 7 != 5245 Object.defineProperty({}, "a", { 5246 get: function () { 5247 return 7 5248 }, 5249 }).a 5250 ) 5251 }) 5252 }, 5253 function (a, b) { 5254 a.exports = function (a) { 5255 try { 5256 return !!a() 5257 } catch (b) { 5258 return !0 5259 } 5260 } 5261 }, 5262 function (a, b, c) { 5263 var d = c(16), 5264 e = c(21), 5265 f = c(22), 5266 g = "prototype", 5267 h = function (a, b, c) { 5268 var i, 5269 j, 5270 k, 5271 l = a & h.F, 5272 m = a & h.G, 5273 n = a & h.S, 5274 o = a & h.P, 5275 p = a & h.B, 5276 q = a & h.W, 5277 r = m ? e : e[b] || (e[b] = {}), 5278 s = m ? d : n ? d[b] : (d[b] || {})[g] 5279 m && (c = b) 5280 for (i in c) 5281 (j = !l && s && i in s), 5282 (j && i in r) || 5283 ((k = j ? s[i] : c[i]), 5284 (r[i] = 5285 m && "function" != typeof s[i] 5286 ? c[i] 5287 : p && j 5288 ? f(k, d) 5289 : q && s[i] == k 5290 ? (function (a) { 5291 var b = function (b) { 5292 return this instanceof a ? new a(b) : a(b) 5293 } 5294 return (b[g] = a[g]), b 5295 })(k) 5296 : o && "function" == typeof k 5297 ? f(Function.call, k) 5298 : k), 5299 o && ((r[g] || (r[g] = {}))[i] = k)) 5300 } 5301 ;(h.F = 1), (h.G = 2), (h.S = 4), (h.P = 8), (h.B = 16), (h.W = 32), (a.exports = h) 5302 }, 5303 function (a, b) { 5304 var c = (a.exports = { version: "1.2.6" }) 5305 "number" == typeof __e && (__e = c) 5306 }, 5307 function (a, b, c) { 5308 var d = c(23) 5309 a.exports = function (a, b, c) { 5310 if ((d(a), void 0 === b)) return a 5311 switch (c) { 5312 case 1: 5313 return function (c) { 5314 return a.call(b, c) 5315 } 5316 case 2: 5317 return function (c, d) { 5318 return a.call(b, c, d) 5319 } 5320 case 3: 5321 return function (c, d, e) { 5322 return a.call(b, c, d, e) 5323 } 5324 } 5325 return function () { 5326 return a.apply(b, arguments) 5327 } 5328 } 5329 }, 5330 function (a, b) { 5331 a.exports = function (a) { 5332 if ("function" != typeof a) throw TypeError(a + " is not a function!") 5333 return a 5334 } 5335 }, 5336 function (a, b, c) { 5337 a.exports = c(25) 5338 }, 5339 function (a, b, c) { 5340 var d = c(9), 5341 e = c(26) 5342 a.exports = c(18) 5343 ? function (a, b, c) { 5344 return d.setDesc(a, b, e(1, c)) 5345 } 5346 : function (a, b, c) { 5347 return (a[b] = c), a 5348 } 5349 }, 5350 function (a, b) { 5351 a.exports = function (a, b) { 5352 return { enumerable: !(1 & a), configurable: !(2 & a), writable: !(4 & a), value: b } 5353 } 5354 }, 5355 function (a, b, c) { 5356 var d = c(16), 5357 e = "__core-js_shared__", 5358 f = d[e] || (d[e] = {}) 5359 a.exports = function (a) { 5360 return f[a] || (f[a] = {}) 5361 } 5362 }, 5363 function (a, b, c) { 5364 var d = c(9).setDesc, 5365 e = c(17), 5366 f = c(29)("toStringTag") 5367 a.exports = function (a, b, c) {
5368 a && !e((a = c ? a : a.prototype), f) && d(a, f, { configurable: !0, value: b }) 5369 } 5370 }, 5371 function (a, b, c) { 5372 var d = c(27)("wks"), 5373 e = c(30), 5374 f = c(16).Symbol 5375 a.exports = function (a) { 5376 return d[a] || (d[a] = (f && f[a]) || (f || e)("Symbol." + a)) 5377 } 5378 }, 5379 function (a, b) { 5380 var c = 0, 5381 d = Math.random() 5382 a.exports = function (a) { 5383 return "Symbol(".concat(void 0 === a ? "" : a, ")_", (++c + d).toString(36)) 5384 } 5385 }, 5386 function (a, b, c) { 5387 var d = c(9), 5388 e = c(32) 5389 a.exports = function (a, b) { 5390 for (var c, f = e(a), g = d.getKeys(f), h = g.length, i = 0; h > i; ) 5391 if (f[(c = g[i++])] === b) return c 5392 } 5393 }, 5394 function (a, b, c) { 5395 var d = c(33), 5396 e = c(35) 5397 a.exports = function (a) { 5398 return d(e(a)) 5399 } 5400 }, 5401 function (a, b, c) { 5402 var d = c(34) 5403 a.exports = Object("z").propertyIsEnumerable(0) 5404 ? Object 5405 : function (a) { 5406 return "String" == d(a) ? a.split("") : Object(a) 5407 } 5408 }, 5409 function (a, b) { 5410 var c = {}.toString 5411 a.exports = function (a) { 5412 return c.call(a).slice(8, -1) 5413 } 5414 }, 5415 function (a, b) { 5416 a.exports = function (a) { 5417 if (void 0 == a) throw TypeError("Can't call method on " + a) 5418 return a 5419 } 5420 }, 5421 function (a, b, c) { 5422 var d = c(32), 5423 e = c(9).getNames, 5424 f = {}.toString, 5425 g = 5426 "object" == typeof window && Object.getOwnPropertyNames 5427 ? Object.getOwnPropertyNames(window) 5428 : [], 5429 h = function (a) { 5430 try { 5431 return e(a) 5432 } catch (b) { 5433 return g.slice() 5434 } 5435 } 5436 a.exports.get = function (a) { 5437 return g && "[object Window]" == f.call(a) ? h(a) : e(d(a)) 5438 } 5439 }, 5440 function (a, b, c) { 5441 var d = c(9) 5442 a.exports = function (a) { 5443 var b = d.getKeys(a), 5444 c = d.getSymbols 5445 if (c) 5446 for (var e, f = c(a), g = d.isEnum, h = 0; f.length > h; ) 5447 g.call(a, (e = f[h++])) && b.push(e) 5448 return b 5449 } 5450 }, 5451 function (a, b, c) { 5452 var d = c(34) 5453 a.exports = 5454 Array.isArray || 5455 function (a) { 5456 return "Array" == d(a) 5457 } 5458 }, 5459 function (a, b, c) { 5460 var d = c(40) 5461 a.exports = function (a) { 5462 if (!d(a)) throw TypeError(a + " is not an object!") 5463 return a 5464 } 5465 }, 5466 function (a, b) { 5467 a.exports = function (a) { 5468 return "object" == typeof a ? null !== a : "function" == typeof a 5469 } 5470 }, 5471 function (a, b) { 5472 a.exports = !0 5473 }, 5474 function (a, b) {}, 5475 function (a, b, c) { 5476 a.exports = { default: c(44), __esModule: !0 } 5477 }, 5478 function (a, b, c) { 5479 c(45), c(51), (a.exports = c(29)("iterator")) 5480 }, 5481 function (a, b, c) { 5482 "use strict" 5483 var d = c(46)(!0) 5484 c(48)( 5485 String, 5486 "String", 5487 function (a) { 5488 ;(this._t = String(a)), (this._i = 0) 5489 }, 5490 function () { 5491 var a, 5492 b = this._t, 5493 c = this._i 5494 return c >= b.length 5495 ? { value: void 0, done: !0 } 5496 : ((a = d(b, c)), (this._i += a.length), { value: a, done: !1 }) 5497 }, 5498 ) 5499 }, 5500 function (a, b, c) { 5501 var d = c(47), 5502 e = c(35) 5503 a.exports = function (a) { 5504 return function (b, c) { 5505 var f, 5506 g, 5507 h = String(e(b)), 5508 i = d(c), 5509 j = h.length 5510 return i < 0 || i >= j 5511 ? a 5512 ? "" 5513 : void 0 5514 : ((f = h.charCodeAt(i)), 5515 f < 55296 || 5516 f > 56319 || 5517 i + 1 === j || 5518 (g = h.charCodeAt(i + 1)) < 56320 || 5519 g > 57343 5520 ? a 5521 ? h.charAt(i) 5522 : f 5523 : a 5524 ? h.slice(i, i + 2) 5525 : ((f - 55296) << 10) + (g - 56320) + 65536) 5526 } 5527 } 5528 }, 5529 function (a, b) { 5530 var c = Math.ceil, 5531 d = Math.floor 5532 a.exports = function (a) { 5533 return isNaN((a = +a)) ? 0 : (a > 0 ? d : c)(a) 5534 } 5535 }, 5536 function (a, b, c) { 5537 "use strict" 5538 var d = c(41), 5539 e = c(20), 5540 f = c(24), 5541 g = c(25), 5542 h = c(17), 5543 i = c(49), 5544 j = c(50), 5545 k = c(28), 5546 l = c(9).getProto, 5547 m = c(29)("iterator"), 5548 n = !([].keys && "next" in [].keys()), 5549 o = "@@iterator", 5550 p = "keys", 5551 q = "values", 5552 r = function () { 5553 return this 5554 } 5555 a.exports = function (a, b, c, s, t, u, v) { 5556 j(c, b, s) 5557 var w, 5558 x, 5559 y = function (a) { 5560 if (!n && a in C) return C[a] 5561 switch (a) { 5562 case p: 5563 return function () { 5564 return new c(this, a) 5565 } 5566 case q: 5567 return function () { 5568 return new c(this, a) 5569 } 5570 } 5571 return function () { 5572 return new c(this, a) 5573 } 5574 }, 5575 z = b + " Iterator", 5576 A = t == q, 5577 B = !1, 5578 C = a.prototype, 5579 D = C[m] || C[o] || (t && C[t]), 5580 E = D || y(t) 5581 if (D) { 5582 var F = l(E.call(new a())) 5583 k(F, z, !0), 5584 !d && h(C, o) && g(F, m, r), 5585 A && 5586 D.name !== q && 5587 ((B = !0), 5588 (E = function () { 5589 return D.call(this) 5590 })) 5591 } 5592 if (((d && !v) || (!n && !B && C[m]) || g(C, m, E), (i[b] = E), (i[z] = r), t)) 5593 if ( 5594 ((w = { values: A ? E : y(q), keys: u ? E : y(p), entries: A ? y("entries") : E }), v) 5595 ) 5596 for (x in w) x in C || f(C, x, w[x]) 5597 else e(e.P + e.F * (n || B), b, w) 5598 return w 5599 } 5600 }, 5601 function (a, b) { 5602 a.exports = {} 5603 }, 5604 function (a, b, c) { 5605 "use strict" 5606 var d = c(9), 5607 e = c(26), 5608 f = c(28), 5609 g = {} 5610 c(25)(g, c(29)("iterator"), function () { 5611 return this 5612 }), 5613 (a.exports = function (a, b, c) { 5614 ;(a.prototype = d.create(g, { next: e(1, c) })), f(a, b + " Iterator") 5615 }) 5616 }, 5617 function (a, b, c) { 5618 c(52) 5619 var d = c(49) 5620 d.NodeList = d.HTMLCollection = d.Array 5621 }, 5622 function (a, b, c) { 5623 "use strict" 5624 var d = c(53), 5625 e = c(54), 5626 f = c(49), 5627 g = c(32) 5628 ;(a.exports = c(48)( 5629 Array, 5630 "Array", 5631 function (a, b) { 5632 ;(this._t = g(a)), (this._i = 0), (this._k = b) 5633 }, 5634 function () { 5635 var a = this._t, 5636 b = this._k, 5637 c = this._i++ 5638 return !a || c >= a.length 5639 ? ((this._t = void 0), e(1)) 5640 : "keys" == b 5641 ? e(0, c) 5642 : "values" == b 5643 ? e(0, a[c]) 5644 : e(0, [c, a[c]]) 5645 }, 5646 "values", 5647 )), 5648 (f.Arguments = f.Array), 5649 d("keys"), 5650 d("values"), 5651 d("entries") 5652 }, 5653 function (a, b) { 5654 a.exports = function () {} 5655 }, 5656 function (a, b) { 5657 a.exports = function (a, b) { 5658 return { value: b, done: !!a } 5659 } 5660 }, 5661 function (a, b, c) { 5662 a.exports = { default: c(56), __esModule: !0 } 5663 }, 5664 function (a, b, c) { 5665 c(51), c(45), (a.exports = c(57)) 5666 }, 5667 function (a, b, c) { 5668 var d = c(39), 5669 e = c(58) 5670 a.exports = c(21).getIterator = function (a) { 5671 var b = e(a) 5672 if ("function" != typeof b) throw TypeError(a + " is not iterable!") 5673 return d(b.call(a)) 5674 } 5675 }, 5676 function (a, b, c) { 5677 var d = c(59), 5678 e = c(29)("iterator"), 5679 f = c(49) 5680 a.exports = c(21).getIteratorMethod = function (a) { 5681 if (void 0 != a) return a[e] || a["@@iterator"] || f[d(a)] 5682 } 5683 }, 5684 function (a, b, c) { 5685 var d = c(34), 5686 e = c(29)("toStringTag"), 5687 f = 5688 "Arguments" == 5689 d( 5690 (function () { 5691 return arguments 5692 })(), 5693 ) 5694 a.exports = function (a) { 5695 var b, c, g 5696 return void 0 === a 5697 ? "Undefined" 5698 : null === a 5699 ? "Null" 5700 : "string" == typeof (c = (b = Object(a))[e]) 5701 ? c 5702 : f 5703 ? d(b) 5704 : "Object" == (g = d(b)) && "function" == typeof b.callee 5705 ? "Arguments" 5706 : g 5707 } 5708 }, 5709 function (a, b, c) { 5710 a.exports = { default: c(61), __esModule: !0 } 5711 }, 5712 function (a, b, c) { 5713 c(62), (a.exports = c(21).Object.keys) 5714 }, 5715 function (a, b, c) { 5716 var d = c(63) 5717 c(64)("keys", function (a) { 5718 return function (b) { 5719 return a(d(b)) 5720 } 5721 }) 5722 }, 5723 function (a, b, c) { 5724 var d = c(35) 5725 a.exports = function (a) { 5726 return Object(d(a)) 5727 } 5728 }, 5729 function (a, b, c) { 5730 var d = c(20), 5731 e = c(21), 5732 f = c(19) 5733 a.exports = function (a, b) { 5734 var c = (e.Object || {})[a] || Object[a], 5735 g = {} 5736 ;(g[a] = b(c)), 5737 d( 5738 d.S + 5739 d.F * 5740 f(function () { 5741 c(1) 5742 }), 5743 "Object", 5744 g, 5745 ) 5746 } 5747 }, 5748 function (a, b, c) { 5749 "use strict" 5750 var d = c(1)["default"] 5751 b.__esModule = !0 5752 var e = c(6), 5753 f = d(e) 5754 ;(b["default"] = function (a) { 5755 a.registerHelper("helperMissing", function () { 5756 if (1 !== arguments.length) 5757 throw new f["default"]('Missing helper: "' + arguments[arguments.length - 1].name + '"') 5758 }) 5759 }), 5760 (a.exports = b["default"]) 5761 }, 5762 function (a, b, c) { 5763 "use strict" 5764 var d = c(1)["default"] 5765 b.__esModule = !0 5766 var e = c(5), 5767 f = c(6), 5768 g = d(f) 5769 ;(b["default"] = function (a) { 5770 a.registerHelper("if", function (a, b) { 5771 if (2 != arguments.length) throw new g["default"]("#if requires exactly one argument") 5772 return ( 5773 e.isFunction(a) && (a = a.call(this)), 5774 (!b.hash.includeZero && !a) || e.isEmpty(a) ? b.inverse(this) : b.fn(this) 5775 ) 5776 }), 5777 a.registerHelper("unless", function (b, c) { 5778 if (2 != arguments.length) 5779 throw new g["default"]("#unless requires exactly one argument") 5780 return a.helpers["if"].call(this, b, { fn: c.inverse, inverse: c.fn, hash: c.hash }) 5781 }) 5782 }), 5783 (a.exports = b["default"]) 5784 }, 5785 function (a, b) { 5786 "use strict" 5787 ;
5787(b.__esModule = !0), 5788 (b["default"] = function (a) { 5789 a.registerHelper("log", function () { 5790 for ( 5791 var b = [void 0], c = arguments[arguments.length - 1], d = 0; 5792 d < arguments.length - 1; 5793 d++ 5794 ) 5795 b.push(arguments[d]) 5796 var e = 1 5797 null != c.hash.level 5798 ? (e = c.hash.level) 5799 : c.data && null != c.data.level && (e = c.data.level), 5800 (b[0] = e), 5801 a.log.apply(a, b) 5802 }) 5803 }), 5804 (a.exports = b["default"]) 5805 }, 5806 function (a, b) { 5807 "use strict" 5808 ;(b.__esModule = !0), 5809 (b["default"] = function (a) { 5810 a.registerHelper("lookup", function (a, b, c) { 5811 return a ? c.lookupProperty(a, b) : a 5812 }) 5813 }), 5814 (a.exports = b["default"]) 5815 }, 5816 function (a, b, c) { 5817 "use strict" 5818 var d = c(1)["default"] 5819 b.__esModule = !0 5820 var e = c(5), 5821 f = c(6), 5822 g = d(f) 5823 ;(b["default"] = function (a) { 5824 a.registerHelper("with", function (a, b) { 5825 if (2 != arguments.length) throw new g["default"]("#with requires exactly one argument") 5826 e.isFunction(a) && (a = a.call(this)) 5827 var c = b.fn 5828 if (e.isEmpty(a)) return b.inverse(this) 5829 var d = b.data 5830 return ( 5831 b.data && 5832 b.ids && 5833 ((d = e.createFrame(b.data)), 5834 (d.contextPath = e.appendContextPath(b.data.contextPath, b.ids[0]))), 5835 c(a, { data: d, blockParams: e.blockParams([a], [d && d.contextPath]) }) 5836 ) 5837 }) 5838 }), 5839 (a.exports = b["default"]) 5840 }, 5841 function (a, b, c) { 5842 "use strict" 5843 function d(a) { 5844 g["default"](a) 5845 } 5846 var e = c(1)["default"] 5847 ;(b.__esModule = !0), (b.registerDefaultDecorators = d) 5848 var f = c(71), 5849 g = e(f) 5850 }, 5851 function (a, b, c) { 5852 "use strict" 5853 b.__esModule = !0 5854 var d = c(5) 5855 ;(b["default"] = function (a) { 5856 a.registerDecorator("inline", function (a, b, c, e) { 5857 var f = a 5858 return ( 5859 b.partials || 5860 ((b.partials = {}), 5861 (f = function (e, f) { 5862 var g = c.partials 5863 c.partials = d.extend({}, g, b.partials) 5864 var h = a(e, f) 5865 return (c.partials = g), h 5866 })), 5867 (b.partials[e.args[0]] = e.fn), 5868 f 5869 ) 5870 }) 5871 }), 5872 (a.exports = b["default"]) 5873 }, 5874 function (a, b, c) { 5875 "use strict" 5876 b.__esModule = !0 5877 var d = c(5), 5878 e = { 5879 methodMap: ["debug", "info", "warn", "error"], 5880 level: "info", 5881 lookupLevel: function (a) { 5882 if ("string" == typeof a) { 5883 var b = d.indexOf(e.methodMap, a.toLowerCase()) 5884 a = b >= 0 ? b : parseInt(a, 10) 5885 } 5886 return a 5887 }, 5888 log: function (a) { 5889 if ( 5890 ((a = e.lookupLevel(a)), "undefined" != typeof console && e.lookupLevel(e.level) <= a) 5891 ) { 5892 var b = e.methodMap[a] 5893 console[b] || (b = "log") 5894 for (var c = arguments.length, d = Array(c > 1 ? c - 1 : 0), f = 1; f < c; f++) 5895 d[f - 1] = arguments[f] 5896 console[b].apply(console, d) 5897 } 5898 }, 5899 } 5900 ;(b["default"] = e), (a.exports = b["default"]) 5901 }, 5902 function (a, b, c) { 5903 "use strict" 5904 function d(a) { 5905 var b = i(null) 5906 ;(b.__proto__ = !1), l.extend(b, a.allowedProtoProperties) 5907 var c = i(null) 5908 return ( 5909 (c.constructor = !1), 5910 (c.__defineGetter__ = !1), 5911 (c.__defineSetter__ = !1), 5912 (c.__lookupGetter__ = !1), 5913 (c.__lookupSetter__ = !1), 5914 l.extend(c, a.allowedProtoMethods), 5915 { 5916 properties: { whitelist: b, defaultValue: a.allowProtoPropertiesByDefault }, 5917 methods: { whitelist: c, defaultValue: a.allowProtoMethodsByDefault }, 5918 } 5919 ) 5920 } 5921 function e(a, b, c) { 5922 return "function" == typeof a ? f(b.methods, c) : f(b.properties, c) 5923 } 5924 function f(a, b) { 5925 return void 0 !== a.whitelist[b] 5926 ? a.whitelist[b] === !0 5927 : void 0 !== a.defaultValue 5928 ? a.defaultValue 5929 : (g(b), !1) 5930 }
5931 function g(a) { 5932 o[a] !== !0 && 5933 ((o[a] = !0), 5934 n["default"].log( 5935 "error", 5936 'Handlebars: Access has been denied to resolve the property "' + 5937 a + 5938 '" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details', 5939 )) 5940 } 5941 function h() { 5942 j(o).forEach(function (a) { 5943 delete o[a] 5944 }) 5945 } 5946 var i = c(74)["default"], 5947 j = c(60)["default"], 5948 k = c(1)["default"] 5949 ;(b.__esModule = !0), 5950 (b.createProtoAccessControl = d), 5951 (b.resultIsAllowed = e), 5952 (b.resetLoggedProperties = h) 5953 var l = c(5), 5954 m = c(72), 5955 n = k(m), 5956 o = i(null) 5957 }, 5958 function (a, b, c) { 5959 a.exports = { default: c(75), __esModule: !0 } 5960 }, 5961 function (a, b, c) { 5962 var d = c(9) 5963 a.exports = function (a, b) { 5964 return d.create(a, b) 5965 } 5966 }, 5967 function (a, b) { 5968 "use strict" 5969 function c(a) { 5970 this.string = a 5971 } 5972 ;(b.__esModule = !0), 5973 (c.prototype.toString = c.prototype.toHTML = 5974 function () { 5975 return "" + this.string 5976 }), 5977 (b["default"] = c), 5978 (a.exports = b["default"]) 5979 }, 5980 function (a, b, c) { 5981 "use strict" 5982 function d(a) { 5983 var b = (a && a[0]) || 1, 5984 c = w.COMPILER_REVISION 5985 if (!(b >= w.LAST_COMPATIBLE_COMPILER_REVISION && b <= w.COMPILER_REVISION)) { 5986 if (b < w.LAST_COMPATIBLE_COMPILER_REVISION) { 5987 var d = w.REVISION_CHANGES[c], 5988 e = w.REVISION_CHANGES[b] 5989 throw new v["default"]( 5990 "Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (" + 5991 d + 5992 ") or downgrade your runtime to an older version (" + 5993 e + 5994 ").", 5995 ) 5996 } 5997 throw new v["default"]( 5998 "Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + 5999 a[1] + 6000 ").", 6001 ) 6002 } 6003 } 6004 function e(a, b) { 6005 function c(c, d, e) { 6006 e.hash && ((d = t.extend({}, d, e.hash)), e.ids && (e.ids[0] = !0)), 6007 (c = b.VM.resolvePartial.call(this, c, d, e)), 6008 (e.hooks = this.hooks), 6009 (e.protoAccessControl = this.protoAccessControl) 6010 var f = b.VM.invokePartial.call(this, c, d, e) 6011 if ( 6012 (null == f && 6013 b.compile && 6014 ((e.partials[e.name] = b.compile(c, a.compilerOptions, b)), 6015 (f = e.partials[e.name](d, e))), 6016 null != f) 6017 ) { 6018 if (e.indent) { 6019 for (var g = f.split("\n"), h = 0, i = g.length; h < i && (g[h] || h + 1 !== i); h++) 6020 g[h] = e.indent + g[h] 6021 f = g.join("\n") 6022 } 6023 return f 6024 } 6025 throw new v["default"]( 6026 "The partial " + e.name + " could not be compiled when running in runtime-only mode", 6027 ) 6028 } 6029 function d(b) { 6030 function c(b) { 6031 return "" + a.main(g, b, g.helpers, g.partials, f, i, h) 6032 } 6033 var e = arguments.length <= 1 || void 0 === arguments[1] ? {} : arguments[1], 6034 f = e.data 6035 d._setup(e), !e.partial && a.useData && (f = k(b, f)) 6036 var h = void 0, 6037 i = a.useBlockParams ? [] : void 0 6038 return ( 6039 a.useDepths && 6040 (h = e.depths ? (b != e.depths[0] ? [b].concat(e.depths) : e.depths) : [b]), 6041 (c = l(a.main, c, g, e.depths || [], f, i))(b, e) 6042 ) 6043 } 6044 if (!b) throw new v["default"]("No environment passed to template") 6045 if (!a || !a.main) throw new v["default"]("Unknown template object: " + typeof a) 6046 ;(a.main.decorator = a.main_d), b.VM.checkRevision(a.compiler) 6047 var e = a.compiler && 7 === a.compiler[0], 6048 g = {
6049 strict: function (a, b, c) { 6050 if (!(a && b in a)) 6051 throw new v["default"]('"' + b + '" not defined in ' + a, { loc: c }) 6052 return g.lookupProperty(a, b) 6053 }, 6054 lookupProperty: function (a, b) { 6055 var c = a[b] 6056 return null == c 6057 ? c 6058 : Object.prototype.hasOwnProperty.call(a, b) 6059 ? c 6060 : z.resultIsAllowed(c, g.protoAccessControl, b) 6061 ? c 6062 : void 0 6063 }, 6064 lookup: function (a, b) { 6065 for (var c = a.length, d = 0; d < c; d++) { 6066 var e = a[d] && g.lookupProperty(a[d], b) 6067 if (null != e) return e 6068 } 6069 }, 6070 lambda: function (a, b) { 6071 return "function" == typeof a ? a.call(b) : a 6072 }, 6073 escapeExpression: t.escapeExpression, 6074 invokePartial: c, 6075 fn: function (b) { 6076 var c = a[b] 6077 return (c.decorator = a[b + "_d"]), c 6078 }, 6079 programs: [], 6080 program: function (a, b, c, d, e) { 6081 var g = this.programs[a], 6082 h = this.fn(a) 6083 return ( 6084 b || e || d || c 6085 ? (g = f(this, a, h, b, c, d, e)) 6086 : g || (g = this.programs[a] = f(this, a, h)), 6087 g 6088 ) 6089 }, 6090 data: function (a, b) { 6091 for (; a && b--; ) a = a._parent 6092 return a 6093 }, 6094 mergeIfNeeded: function (a, b) { 6095 var c = a || b 6096 return a && b && a !== b && (c = t.extend({}, b, a)), c 6097 }, 6098 nullContext: o({}), 6099 noop: b.VM.noop, 6100 compilerInfo: a.compiler, 6101 } 6102 return ( 6103 (d.isTop = !0), 6104 (d._setup = function (c) { 6105 if (c.partial) 6106 (g.protoAccessControl = c.protoAccessControl), 6107 (g.helpers = c.helpers), 6108 (g.partials = c.partials), 6109 (g.decorators = c.decorators), 6110 (g.hooks = c.hooks) 6111 else { 6112 var d = {} 6113 m(d, b.helpers, g), 6114 m(d, c.helpers, g), 6115 (g.helpers = d), 6116 a.usePartial && (g.partials = g.mergeIfNeeded(c.partials, b.partials)), 6117 (a.usePartial || a.useDecorators) && 6118 (g.decorators = t.extend({}, b.decorators, c.decorators)), 6119 (g.hooks = {}), 6120 (g.protoAccessControl = z.createProtoAccessControl(c)) 6121 var f = c.allowCallsToHelperMissing || e 6122 x.moveHelperToHooks(g, "helperMissing", f), 6123 x.moveHelperToHooks(g, "blockHelperMissing", f) 6124 } 6125 }), 6126 (d._child = function (b, c, d, e) { 6127 if (a.useBlockParams && !d) throw new v["default"]("must pass block params") 6128 if (a.useDepths && !e) throw new v["default"]("must pass parent depths") 6129 return f(g, b, a[b], c, 0, d, e) 6130 }), 6131 d 6132 ) 6133 } 6134 function f(a, b, c, d, e, f, g) { 6135 function h(b) { 6136 var e = arguments.length <= 1 || void 0 === arguments[1] ? {} : arguments[1], 6137 h = g 6138 return ( 6139 !g || b == g[0] || (b === a.nullContext && null === g[0]) || (h = [b].concat(g)), 6140 c(a, b, a.helpers, a.partials, e.data || d, f && [e.blockParams].concat(f), h) 6141 ) 6142 } 6143 return ( 6144 (h = l(c, h, a, g, d, f)), 6145 (h.program = b), 6146 (h.depth = g ? g.length : 0), 6147 (h.blockParams = e || 0), 6148 h 6149 ) 6150 } 6151 function g(a, b, c) { 6152 return ( 6153 a 6154 ? a.call || c.name || ((c.name = a), (a = j(c.partials, a))) 6155 : (a = 6156 "@partial-block" === c.name ? j(c.data, "partial-block") : j(c.partials, c.name)), 6157 a 6158 ) 6159 } 6160 function h(a, b, c) { 6161 var d = j(c.data, "partial-block") 6162 ;(c.partial = !0), c.ids && (c.data.contextPath = c.ids[0] || c.data.contextPath) 6163 var e = void 0 6164 if ( 6165 (c.fn && 6166 c.fn !== i && 6167 !(function () { 6168 c.data = w.createFrame(c.data) 6169 var a = c.fn 6170 ;(e = c.data["partial-block"] = 6171 function (b) { 6172 var c = arguments.length <= 1 || void 0 === arguments[1] ? {}
6172 : arguments[1] 6173 return (c.data = w.createFrame(c.data)), (c.data["partial-block"] = d), a(b, c) 6174 }), 6175 a.partials && (c.partials = t.extend({}, c.partials, a.partials)) 6176 })(), 6177 void 0 === a && e && (a = e), 6178 void 0 === a) 6179 ) 6180 throw new v["default"]("The partial " + c.name + " could not be found") 6181 if (a instanceof Function) return a(b, c) 6182 } 6183 function i() { 6184 return "" 6185 } 6186 function j(a, b) { 6187 if (a && Object.prototype.hasOwnProperty.call(a, b)) return a[b] 6188 } 6189 function k(a, b) { 6190 return (b && "root" in b) || ((b = b ? w.createFrame(b) : {}), (b.root = a)), b 6191 } 6192 function l(a, b, c, d, e, f) { 6193 if (a.decorator) { 6194 var g = {} 6195 ;(b = a.decorator(b, g, c, d && d[0], e, f, d)), t.extend(b, g) 6196 } 6197 return b 6198 } 6199 function m(a, b, c) { 6200 b && 6201 p(b).forEach(function (d) { 6202 var e = b[d] 6203 a[d] = n(e, c) 6204 }) 6205 } 6206 function n(a, b) { 6207 var c = b.lookupProperty 6208 return y.wrapHelper(a, function (a) { 6209 return (a.lookupProperty = c), a 6210 }) 6211 } 6212 var o = c(78)["default"], 6213 p = c(60)["default"], 6214 q = c(3)["default"], 6215 r = c(1)["default"] 6216 ;(b.__esModule = !0), 6217 (b.checkRevision = d), 6218 (b.template = e), 6219 (b.wrapProgram = f), 6220 (b.resolvePartial = g), 6221 (b.invokePartial = h), 6222 (b.noop = i) 6223 var s = c(5), 6224 t = q(s), 6225 u = c(6), 6226 v = r(u), 6227 w = c(4), 6228 x = c(10), 6229 y = c(81), 6230 z = c(73) 6231 }, 6232 function (a, b, c) { 6233 a.exports = { default: c(79), __esModule: !0 } 6234 }, 6235 function (a, b, c) { 6236 c(80), (a.exports = c(21).Object.seal) 6237 }, 6238 function (a, b, c) { 6239 var d = c(40) 6240 c(64)("seal", function (a) { 6241 return function (b) { 6242 return a && d(b) ? a(b) : b 6243 } 6244 }) 6245 }, 6246 function (a, b) { 6247 "use strict" 6248 function c(a, b) { 6249 if ("function" != typeof a) return a 6250 var c = function () { 6251 var c = arguments[arguments.length - 1] 6252 return (arguments[arguments.length - 1] = b(c)), a.apply(this, arguments) 6253 } 6254 return c 6255 } 6256 ;(b.__esModule = !0), (b.wrapHelper = c) 6257 }, 6258 function (a, b) { 6259 "use strict" 6260 ;(b.__esModule = !0), 6261 (b["default"] = function (a) { 6262 !(function () { 6263 "object" != typeof globalThis && 6264 (Object.prototype.__defineGetter__("__magic__", function () { 6265 return this 6266 }), 6267 (__magic__.globalThis = __magic__), 6268 delete Object.prototype.__magic__) 6269 })() 6270 var b = globalThis.Handlebars 6271 a.noConflict = function () { 6272 return globalThis.Handlebars === a && (globalThis.Handlebars = b), a 6273 } 6274 }), 6275 (a.exports = b["default"]) 6276 }, 6277 function (a, b) { 6278 "use strict" 6279 b.__esModule = !0 6280 var c = { 6281 helpers: { 6282 helperExpression: function (a) { 6283 return ( 6284 "SubExpression" === a.type || 6285 (("MustacheStatement" === a.type || "BlockStatement" === a.type) && 6286 !!((a.params && a.params.length) || a.hash)) 6287 ) 6288 }, 6289 scopedId: function (a) { 6290 return /^\.|this\b/.test(a.original) 6291 }, 6292 simpleId: function (a) { 6293 return 1 === a.parts.length && !c.helpers.scopedId(a) && !a.depth 6294 }, 6295 }, 6296 } 6297 ;(b["default"] = c), (a.exports = b["default"]) 6298 }, 6299 function (a, b, c) { 6300 "use strict" 6301 function d(a, b) { 6302 if ("Program" === a.type) return f(a), a 6303 ;(m["default"].yy = u), 6304 (u.locInfo = function (a) { 6305 return new u.SourceLocation(b && b.srcName, a) 6306 }) 6307 var c = m["default"].parse(a) 6308 return c 6309 } 6310 function e(a, b) { 6311 var c = d(a, b), 6312 e = new o["default"](b) 6313 return e.accept(c) 6314 } 6315 function f(a) { 6316 g(a) 6317 }
6318 function g(a) { 6319 if (null != a) { 6320 if (Array.isArray(a)) return void a.forEach(g) 6321 if ("object" == typeof a) { 6322 if ("PathExpression" === a.type) { 6323 if (!h(a.depth)) 6324 throw new s["default"]("Invalid AST: PathExpression.depth must be an integer") 6325 if (!Array.isArray(a.parts)) 6326 throw new s["default"]("Invalid AST: PathExpression.parts must be an array") 6327 for (var b = 0; b < a.parts.length; b++) 6328 if ("string" != typeof a.parts[b]) 6329 throw new s["default"]( 6330 "Invalid AST: PathExpression.parts must only contain strings", 6331 ) 6332 } else if ("NumberLiteral" === a.type) { 6333 if ("number" != typeof a.value || !isFinite(a.value)) 6334 throw new s["default"]("Invalid AST: NumberLiteral.value must be a number") 6335 } else if ("BooleanLiteral" === a.type && "boolean" != typeof a.value) 6336 throw new s["default"]("Invalid AST: BooleanLiteral.value must be a boolean") 6337 i(a).forEach(function (b) { 6338 "loc" !== b && g(a[b]) 6339 }) 6340 } 6341 } 6342 } 6343 function h(a) { 6344 return "number" == typeof a && isFinite(a) && Math.floor(a) === a && a >= 0 6345 } 6346 var i = c(60)["default"], 6347 j = c(1)["default"], 6348 k = c(3)["default"] 6349 ;(b.__esModule = !0), (b.parseWithoutProcessing = d), (b.parse = e) 6350 var l = c(85), 6351 m = j(l), 6352 n = c(86), 6353 o = j(n), 6354 p = c(88), 6355 q = k(p), 6356 r = c(6), 6357 s = j(r), 6358 t = c(5) 6359 b.parser = m["default"] 6360 var u = {} 6361 t.extend(u, q) 6362 }, 6363 function (a, b) { 6364 "use strict" 6365 b.__esModule = !0 6366 var c = (function () { 6367 function a() { 6368 this.yy = {} 6369 } 6370 var b = { 6371 trace: function () {}, 6372 yy: {}, 6373 symbols_: { 6374 error: 2, 6375 root: 3, 6376 program: 4, 6377 EOF: 5, 6378 program_repetition0: 6, 6379 statement: 7, 6380 mustache: 8, 6381 block: 9, 6382 rawBlock: 10, 6383 partial: 11, 6384 partialBlock: 12, 6385 content: 13, 6386 COMMENT: 14, 6387 CONTENT: 15, 6388 openRawBlock: 16, 6389 rawBlock_repetition0: 17, 6390 END_RAW_BLOCK: 18, 6391 OPEN_RAW_BLOCK: 19, 6392 helperName: 20, 6393 openRawBlock_repetition0: 21, 6394 openRawBlock_option0: 22, 6395 CLOSE_RAW_BLOCK: 23, 6396 openBlock: 24, 6397 block_option0: 25, 6398 closeBlock: 26, 6399 openInverse: 27, 6400 block_option1: 28, 6401 OPEN_BLOCK: 29, 6402 openBlock_repetition0: 30, 6403 openBlock_option0: 31, 6404 openBlock_option1: 32, 6405 CLOSE: 33, 6406 OPEN_INVERSE: 34, 6407 openInverse_repetition0: 35, 6408 openInverse_option0: 36, 6409 openInverse_option1: 37, 6410 openInverseChain: 38, 6411 OPEN_INVERSE_CHAIN: 39, 6412 openInverseChain_repetition0: 40, 6413 openInverseChain_option0: 41, 6414 openInverseChain_option1: 42, 6415 inverseAndProgram: 43, 6416 INVERSE: 44, 6417 inverseChain: 45, 6418 inverseChain_option0: 46, 6419 OPEN_ENDBLOCK: 47, 6420 OPEN: 48, 6421 mustache_repetition0: 49, 6422 mustache_option0: 50, 6423 OPEN_UNESCAPED: 51, 6424 mustache_repetition1: 52, 6425 mustache_option1: 53, 6426 CLOSE_UNESCAPED: 54, 6427 OPEN_PARTIAL: 55, 6428 partialName: 56, 6429 partial_repetition0: 57, 6430 partial_option0: 58, 6431 openPartialBlock: 59, 6432 OPEN_PARTIAL_BLOCK: 60, 6433 openPartialBlock_repetition0: 61, 6434 openPartialBlock_option0: 62, 6435 param: 63, 6436 sexpr: 64, 6437 OPEN_SEXPR: 65, 6438 sexpr_repetition0: 66, 6439 sexpr_option0: 67, 6440 CLOSE_SEXPR: 68, 6441 hash: 69, 6442 hash_repetition_plus0: 70, 6443 hashSegment: 71, 6444 ID: 72, 6445 EQUALS: 73, 6446 blockParams: 74, 6447 OPEN_BLOCK_PARAMS: 75, 6448 blockParams_repetition_plus0: 76, 6449 CLOSE_BLOCK_PARAMS: 77, 6450 path: 78, 6451 dataName: 79, 6452 STRING: 80, 6453 NUMBER: 81, 6454 BOOLEAN: 82, 6455 UNDEFINED: 83, 6456 NULL: 84, 6457 DATA: 85, 6458 pathSegments: 86, 6459 SEP: 87, 6460 $accept: 0, 6461 $end: 1, 6462 }, 6463 terminals_: { 6464 2: "error", 6465 5: "EOF", 6466 14: "COMMENT", 6467 15: "CONTENT", 6468 18: "END_RAW_BLOCK", 6469 19: "OPEN_RAW_BLOCK", 6470 23: "CLOSE_RAW_BLOCK", 6471 29: "OPEN_BLOCK", 6472 33: "CLOSE", 6473 34: "OPEN_INVERSE", 6474 39: "OPEN_INVERSE_CHAIN", 6475 44: "INVERSE", 6476 47: "OPEN_ENDBLOCK", 6477 48: "OPEN", 6478 51: "OPEN_UNESCAPED", 6479 54: "CLOSE_UNESCAPED", 6480 55: "OPEN_PARTIAL", 6481 60: "OPEN_PARTIAL_BLOCK", 6482 65: "OPEN_SEXPR", 6483 68: "CLOSE_SEXPR", 6484 72: "ID", 6485 73: "EQUALS", 6486 75: "OPEN_BLOCK_PARAMS", 6487 77: "CLOSE_BLOCK_PARAMS", 6488 80: "STRING", 6489 81: "NUMBER", 6490 82: "BOOLEAN", 6491 83: "UNDEFINED", 6492 84: "NULL", 6493 85: "DATA", 6494 87: "SEP", 6495 }, 6496 productions_: [ 6497 0, 6498 [3, 2], 6499 [4, 1], 6500 [7, 1], 6501 [7, 1], 6502 [7, 1], 6503 [7, 1], 6504 [7, 1], 6505 [7, 1], 6506 [7, 1], 6507 [13, 1], 6508 [10, 3], 6509 [16, 5], 6510 [9, 4], 6511 [9, 4], 6512 [24, 6], 6513 [27, 6], 6514 [38, 6], 6515 [43, 2], 6516 [45, 3], 6517 [45, 1], 6518 [26, 3], 6519 [8, 5], 6520 [8, 5], 6521 [11, 5], 6522 [12, 3], 6523 [59, 5], 6524 [63, 1], 6525 [63, 1], 6526 [64, 5], 6527 [69, 1], 6528 [71, 3], 6529 [74, 3], 6530 [20, 1], 6531 [20, 1], 6532 [20, 1], 6533 [20, 1], 6534 [20, 1], 6535 [20, 1], 6536 [20, 1], 6537 [56, 1], 6538 [56, 1], 6539 [79, 2], 6540 [78, 1], 6541 [86, 3], 6542 [86, 1], 6543 [6, 0], 6544 [6, 2], 6545 [17, 0], 6546 [17, 2], 6547 [21, 0], 6548 [21, 2], 6549 [22, 0], 6550 [22, 1], 6551 [25, 0], 6552 [25, 1], 6553 [28, 0], 6554 [28, 1], 6555 [30, 0], 6556 [30, 2], 6557 [31, 0], 6558 [31, 1], 6559 [32, 0], 6560 [32, 1], 6561 [35, 0], 6562 [35, 2], 6563 [36, 0], 6564 [36, 1], 6565 [37, 0], 6566 [37, 1], 6567 [40, 0], 6568 [40, 2], 6569 [41, 0], 6570 [41, 1], 6571 [42, 0],
6572 [42, 1], 6573 [46, 0], 6574 [46, 1], 6575 [49, 0], 6576 [49, 2], 6577 [50, 0], 6578 [50, 1], 6579 [52, 0], 6580 [52, 2], 6581 [53, 0], 6582 [53, 1], 6583 [57, 0], 6584 [57, 2], 6585 [58, 0], 6586 [58, 1], 6587 [61, 0], 6588 [61, 2], 6589 [62, 0], 6590 [62, 1], 6591 [66, 0], 6592 [66, 2], 6593 [67, 0], 6594 [67, 1], 6595 [70, 1], 6596 [70, 2], 6597 [76, 1], 6598 [76, 2], 6599 ], 6600 performAction: function (a, b, c, d, e, f, g) { 6601 var h = f.length - 1 6602 switch (e) { 6603 case 1: 6604 return f[h - 1] 6605 case 2: 6606 this.$ = d.prepareProgram(f[h]) 6607 break 6608 case 3: 6609 this.$ = f[h] 6610 break 6611 case 4: 6612 this.$ = f[h] 6613 break 6614 case 5: 6615 this.$ = f[h] 6616 break 6617 case 6: 6618 this.$ = f[h] 6619 break 6620 case 7: 6621 this.$ = f[h] 6622 break 6623 case 8: 6624 this.$ = f[h] 6625 break 6626 case 9: 6627 this.$ = { 6628 type: "CommentStatement", 6629 value: d.stripComment(f[h]), 6630 strip: d.stripFlags(f[h], f[h]), 6631 loc: d.locInfo(this._$), 6632 } 6633 break 6634 case 10: 6635 this.$ = { 6636 type: "ContentStatement", 6637 original: f[h], 6638 value: f[h], 6639 loc: d.locInfo(this._$), 6640 } 6641 break 6642 case 11: 6643 this.$ = d.prepareRawBlock(f[h - 2], f[h - 1], f[h], this._$) 6644 break 6645 case 12: 6646 this.$ = { path: f[h - 3], params: f[h - 2], hash: f[h - 1] } 6647 break 6648 case 13: 6649 this.$ = d.prepareBlock(f[h - 3], f[h - 2], f[h - 1], f[h], !1, this._$) 6650 break 6651 case 14: 6652 this.$ = d.prepareBlock(f[h - 3], f[h - 2], f[h - 1], f[h], !0, this._$) 6653 break 6654 case 15: 6655 this.$ = { 6656 open: f[h - 5], 6657 path: f[h - 4], 6658 params: f[h - 3], 6659 hash: f[h - 2], 6660 blockParams: f[h - 1], 6661 strip: d.stripFlags(f[h - 5], f[h]), 6662 } 6663 break 6664 case 16: 6665 this.$ = { 6666 path: f[h - 4], 6667 params: f[h - 3], 6668 hash: f[h - 2], 6669 blockParams: f[h - 1], 6670 strip: d.stripFlags(f[h - 5], f[h]), 6671 } 6672 break 6673 case 17: 6674 this.$ = { 6675 path: f[h - 4], 6676 params: f[h - 3], 6677 hash: f[h - 2], 6678 blockParams: f[h - 1], 6679 strip: d.stripFlags(f[h - 5], f[h]), 6680 } 6681 break 6682 case 18: 6683 this.$ = { strip: d.stripFlags(f[h - 1], f[h - 1]), program: f[h] } 6684 break 6685 case 19: 6686 var i = d.prepareBlock(f[h - 2], f[h - 1], f[h], f[h], !1, this._$), 6687 j = d.prepareProgram([i], f[h - 1].loc) 6688 ;(j.chained = !0), (this.$ = { strip: f[h - 2].strip, program: j, chain: !0 }) 6689 break 6690 case 20: 6691 this.$ = f[h] 6692 break 6693 case 21: 6694 this.$ = { path: f[h - 1], strip: d.stripFlags(f[h - 2], f[h]) } 6695 break 6696 case 22: 6697 this.$ = d.prepareMustache( 6698 f[h - 3], 6699 f[h - 2], 6700 f[h - 1], 6701 f[h - 4], 6702 d.stripFlags(f[h - 4], f[h]), 6703 this._$, 6704 ) 6705 break 6706 case 23: 6707 this.$ = d.prepareMustache( 6708 f[h - 3], 6709 f[h - 2], 6710 f[h - 1], 6711 f[h - 4], 6712 d.stripFlags(f[h - 4], f[h]), 6713 this._$, 6714 ) 6715 break 6716 case 24: 6717 this.$ = { 6718 type: "PartialStatement", 6719 name: f[h - 3], 6720 params: f[h - 2], 6721 hash: f[h - 1], 6722 indent: "",
6723 strip: d.stripFlags(f[h - 4], f[h]), 6724 loc: d.locInfo(this._$), 6725 } 6726 break 6727 case 25: 6728 this.$ = d.preparePartialBlock(f[h - 2], f[h - 1], f[h], this._$) 6729 break 6730 case 26: 6731 this.$ = { 6732 path: f[h - 3], 6733 params: f[h - 2], 6734 hash: f[h - 1], 6735 strip: d.stripFlags(f[h - 4], f[h]), 6736 } 6737 break 6738 case 27: 6739 this.$ = f[h] 6740 break 6741 case 28: 6742 this.$ = f[h] 6743 break 6744 case 29: 6745 this.$ = { 6746 type: "SubExpression", 6747 path: f[h - 3], 6748 params: f[h - 2], 6749 hash: f[h - 1], 6750 loc: d.locInfo(this._$), 6751 } 6752 break 6753 case 30: 6754 this.$ = { type: "Hash", pairs: f[h], loc: d.locInfo(this._$) } 6755 break 6756 case 31: 6757 this.$ = { 6758 type: "HashPair", 6759 key: d.id(f[h - 2]), 6760 value: f[h], 6761 loc: d.locInfo(this._$), 6762 } 6763 break 6764 case 32: 6765 this.$ = d.id(f[h - 1]) 6766 break 6767 case 33: 6768 this.$ = f[h] 6769 break 6770 case 34: 6771 this.$ = f[h] 6772 break 6773 case 35: 6774 this.$ = { 6775 type: "StringLiteral", 6776 value: f[h], 6777 original: f[h], 6778 loc: d.locInfo(this._$), 6779 } 6780 break 6781 case 36: 6782 this.$ = { 6783 type: "NumberLiteral", 6784 value: Number(f[h]), 6785 original: Number(f[h]), 6786 loc: d.locInfo(this._$), 6787 } 6788 break 6789 case 37: 6790 this.$ = { 6791 type: "BooleanLiteral", 6792 value: "true" === f[h], 6793 original: "true" === f[h], 6794 loc: d.locInfo(this._$), 6795 } 6796 break 6797 case 38: 6798 this.$ = { 6799 type: "UndefinedLiteral", 6800 original: void 0, 6801 value: void 0, 6802 loc: d.locInfo(this._$), 6803 } 6804 break 6805 case 39: 6806 this.$ = { 6807 type: "NullLiteral", 6808 original: null, 6809 value: null, 6810 loc: d.locInfo(this._$), 6811 } 6812 break 6813 case 40: 6814 this.$ = f[h] 6815 break 6816 case 41: 6817 this.$ = f[h] 6818 break 6819 case 42: 6820 this.$ = d.preparePath(!0, f[h], this._$) 6821 break 6822 case 43: 6823 this.$ = d.preparePath(!1, f[h], this._$) 6824 break 6825 case 44: 6826 f[h - 2].push({ part: d.id(f[h]), original: f[h], separator: f[h - 1] }), 6827 (this.$ = f[h - 2]) 6828 break 6829 case 45: 6830 this.$ = [{ part: d.id(f[h]), original: f[h] }] 6831 break 6832 case 46: 6833 this.$ = [] 6834 break 6835 case 47: 6836 f[h - 1].push(f[h]) 6837 break 6838 case 48: 6839 this.$ = [] 6840 break 6841 case 49: 6842 f[h - 1].push(f[h]) 6843 break 6844 case 50: 6845 this.$ = [] 6846 break 6847 case 51: 6848 f[h - 1].push(f[h]) 6849 break 6850 case 58: 6851 this.$ = [] 6852 break 6853 case 59: 6854 f[h - 1].push(f[h]) 6855 break 6856 case 64: 6857 this.$ = [] 6858 break 6859 case 65: 6860 f[h - 1].push(f[h]) 6861 break 6862 case 70: 6863 this.$ = [] 6864 break 6865 case 71: 6866 f[h - 1].push(f[h]) 6867 break 6868 case 78: 6869 this.$ = [] 6870 break 6871 case 79: 6872 f[h - 1].push(f[h]) 6873 break 6874 case 82: 6875 this.$ = [] 6876 break 6877 case 83: 6878 f[h - 1].push(f[h]) 6879 break 6880 case 86: 6881 this.$ = [] 6882 break 6883 case 87: 6884 f[h - 1].push(f[h]) 6885 break 6886 case 90: 6887 this.$ = [] 6888 break 6889 case 91: 6890 f[h - 1].push(f[h]) 6891 break 6892 case 94: 6893 this.$ = [] 6894 break 6895 case 95: 6896 f[h - 1].push(f[h]) 6897 break 6898 case 98: 6899 this.$ = [f[h]] 6900 break 6901 case 99: 6902 f[h - 1].push(f[h]) 6903 break 6904 case 100: 6905 this.$ = [f[h]] 6906 break 6907 case 101: 6908 f[h - 1].push(f[h]) 6909 } 6910 }, 6911 table: [ 6912 { 6913 3: 1, 6914 4: 2, 6915 5: [2, 46], 6916 6: 3, 6917 14: [2, 46], 6918 15: [2, 46], 6919 19: [2, 46], 6920 29: [2, 46], 6921 34: [2, 46], 6922 48: [2, 46], 6923 51: [2, 46], 6924 55: [2, 46], 6925 60: [2, 46], 6926 }, 6927 { 1: [3] },
6928 { 5: [1, 4] }, 6929 { 6930 5: [2, 2], 6931 7: 5, 6932 8: 6, 6933 9: 7, 6934 10: 8, 6935 11: 9, 6936 12: 10, 6937 13: 11, 6938 14: [1, 12], 6939 15: [1, 20], 6940 16: 17, 6941 19: [1, 23], 6942 24: 15, 6943 27: 16, 6944 29: [1, 21], 6945 34: [1, 22], 6946 39: [2, 2], 6947 44: [2, 2], 6948 47: [2, 2], 6949 48: [1, 13], 6950 51: [1, 14], 6951 55: [1, 18], 6952 59: 19, 6953 60: [1, 24], 6954 }, 6955 { 1: [2, 1] }, 6956 { 6957 5: [2, 47], 6958 14: [2, 47], 6959 15: [2, 47], 6960 19: [2, 47], 6961 29: [2, 47], 6962 34: [2, 47], 6963 39: [2, 47], 6964 44: [2, 47], 6965 47: [2, 47], 6966 48: [2, 47], 6967 51: [2, 47], 6968 55: [2, 47], 6969 60: [2, 47], 6970 }, 6971 { 6972 5: [2, 3], 6973 14: [2, 3], 6974 15: [2, 3], 6975 19: [2, 3], 6976 29: [2, 3], 6977 34: [2, 3], 6978 39: [2, 3], 6979 44: [2, 3], 6980 47: [2, 3], 6981 48: [2, 3], 6982 51: [2, 3], 6983 55: [2, 3], 6984 60: [2, 3], 6985 }, 6986 { 6987 5: [2, 4], 6988 14: [2, 4], 6989 15: [2, 4], 6990 19: [2, 4], 6991 29: [2, 4], 6992 34: [2, 4], 6993 39: [2, 4], 6994 44: [2, 4], 6995 47: [2, 4], 6996 48: [2, 4], 6997 51: [2, 4], 6998 55: [2, 4], 6999 60: [2, 4], 7000 }, 7001 { 7002 5: [2, 5], 7003 14: [2, 5], 7004 15: [2, 5], 7005 19: [2, 5], 7006 29: [2, 5], 7007 34: [2, 5], 7008 39: [2, 5], 7009 44: [2, 5], 7010 47: [2, 5], 7011 48: [2, 5], 7012 51: [2, 5], 7013 55: [2, 5], 7014 60: [2, 5], 7015 }, 7016 { 7017 5: [2, 6], 7018 14: [2, 6], 7019 15: [2, 6], 7020 19: [2, 6], 7021 29: [2, 6], 7022 34: [2, 6], 7023 39: [2, 6], 7024 44: [2, 6], 7025 47: [2, 6], 7026 48: [2, 6], 7027 51: [2, 6], 7028 55: [2, 6], 7029 60: [2, 6], 7030 }, 7031 { 7032 5: [2, 7], 7033 14: [2, 7], 7034 15: [2, 7], 7035 19: [2, 7], 7036 29: [2, 7], 7037 34: [2, 7], 7038 39: [2, 7], 7039 44: [2, 7], 7040 47: [2, 7], 7041 48: [2, 7], 7042 51: [2, 7], 7043 55: [2, 7], 7044 60: [2, 7], 7045 }, 7046 { 7047 5: [2, 8], 7048 14: [2, 8], 7049 15: [2, 8], 7050 19: [2, 8], 7051 29: [2, 8], 7052 34: [2, 8], 7053 39: [2, 8], 7054 44: [2, 8], 7055 47: [2, 8], 7056 48: [2, 8], 7057 51: [2, 8], 7058 55: [2, 8], 7059 60: [2, 8], 7060 }, 7061 { 7062 5: [2, 9], 7063 14: [2, 9], 7064 15: [2, 9], 7065 19: [2, 9], 7066 29: [2, 9], 7067 34: [2, 9], 7068 39: [2, 9], 7069 44: [2, 9], 7070 47: [2, 9], 7071 48: [2, 9], 7072 51: [2, 9], 7073 55: [2, 9], 7074 60: [2, 9], 7075 }, 7076 { 7077 20: 25, 7078 72: [1, 35], 7079 78: 26, 7080 79: 27, 7081 80: [1, 28], 7082 81: [1, 29], 7083 82: [1, 30], 7084 83: [1, 31], 7085 84: [1, 32], 7086 85: [1, 34], 7087 86: 33, 7088 }, 7089 { 7090 20: 36, 7091 72: [1, 35], 7092 78: 26, 7093 79: 27, 7094 80: [1, 28], 7095 81: [1, 29], 7096 82: [1, 30], 7097 83: [1, 31], 7098 84: [1, 32], 7099 85: [1, 34], 7100 86: 33, 7101 }, 7102 { 7103 4: 37, 7104 6: 3, 7105 14: [2, 46], 7106 15: [2, 46], 7107 19: [2, 46], 7108 29: [2, 46], 7109 34: [2, 46], 7110 39: [2, 46], 7111 44: [2, 46], 7112 47: [2, 46], 7113 48: [2, 46], 7114 51: [2, 46], 7115 55: [2, 46], 7116 60: [2, 46], 7117 }, 7118 { 7119 4: 38, 7120 6: 3, 7121 14: [2, 46], 7122 15: [2, 46], 7123 19: [2, 46], 7124 29: [2, 46], 7125 34: [2, 46], 7126 44: [2, 46], 7127 47: [2, 46], 7128 48: [2, 46], 7129 51: [2, 46], 7130 55: [2, 46], 7131 60: [2, 46], 7132 }, 7133 { 15: [2, 48], 17: 39, 18: [2, 48] }, 7134 { 7135 20: 41, 7136 56: 40, 7137 64: 42, 7138 65: [1, 43], 7139 72: [1, 35], 7140 78: 26, 7141 79: 27, 7142 80: [1, 28], 7143 81: [1, 29], 7144 82: [1, 30], 7145 83: [1, 31], 7146 84: [1, 32], 7147 85: [1, 34], 7148 86: 33, 7149 }, 7150 { 7151 4: 44, 7152 6: 3, 7153 14: [2, 46], 7154 15: [2, 46], 7155 19: [2, 46], 7156 29: [2, 46], 7157 34: [2, 46], 7158 47: [2, 46], 7159 48: [2, 46], 7160 51: [2, 46], 7161 55: [2, 46], 7162 60: [2, 46], 7163 }, 7164 { 7165 5: [2, 10], 7166 14: [2, 10], 7167 15: [2, 10], 7168 18: [2, 10], 7169 19: [2, 10], 7170 29: [2, 10], 7171 34: [2, 10], 7172 39: [2, 10], 7173 44: [2, 10], 7174 47: [2, 10], 7175 48: [2, 10], 7176 51: [2, 10], 7177 55: [2, 10], 7178 60: [2, 10], 7179 }, 7180 { 7181 20: 45, 7182 72: [1, 35], 7183 78: 26, 7184 79: 27, 7185 80: [1, 28], 7186 81: [1, 29], 7187 82: [1, 30], 7188 83: [1, 31], 7189 84: [1, 32], 7190 85: [1, 34], 7191 86: 33, 7192 }, 7193 { 7194 20: 46, 7195 72: [1, 35], 7196 78: 26, 7197 79: 27, 7198 80: [1, 28], 7199 81: [1, 29], 7200 82: [1, 30], 7201 83: [1, 31], 7202 84: [1, 32], 7203 85: [1, 34], 7204 86: 33, 7205 }, 7206 { 7207 20: 47, 7208 72: [1, 35], 7209 78: 26, 7210 79: 27, 7211 80: [1, 28], 7212 81: [1, 29], 7213 82: [1, 30], 7214 83: [1, 31], 7215 84: [1, 32], 7216 85: [1, 34], 7217 86: 33, 7218 }, 7219 { 7220 20: 41, 7221 56: 48, 7222 64: 42, 7223 65: [1, 43], 7224 72: [1, 35], 7225 78: 26, 7226 79: 27, 7227 80: [1, 28], 7228 81: [1, 29], 7229 82: [1, 30], 7230 83: [1, 31], 7231 84: [1, 32], 7232 85: [1, 34], 7233 86: 33, 7234 }, 7235 { 7236 33: [2, 78], 7237 49: 49, 7238 65: [2, 78], 7239 72: [2, 78], 7240 80: [2, 78], 7241 81: [2, 78], 7242 82: [2, 78], 7243 83: [2, 78], 7244 84: [2, 78], 7245 85: [2, 78], 7246 }, 7247 { 7248 23: [2, 33], 7249 33: [2, 33], 7250 54: [2, 33], 7251 65: [2, 33], 7252 68: [2, 33], 7253 72: [2, 33], 7254 75: [2, 33], 7255 80: [2, 33], 7256 81: [2, 33], 7257 82: [2, 33], 7258 83: [2, 33], 7259 84: [2, 33], 7260 85: [2, 33], 7261 }, 7262 { 7263 23: [2, 34], 7264 33: [2, 34], 7265 54: [2, 34], 7266 65: [2, 34], 7267 68: [2, 34], 7268 72: [2, 34], 7269 75: [2, 34], 7270 80: [2, 34], 7271 81: [2, 34], 7272 82: [2, 34], 7273 83: [2, 34], 7274 84: [2, 34], 7275 85: [2, 34], 7276 }, 7277 { 7278 23: [2, 35], 7279 33: [2, 35], 7280 54: [2, 35],
7281 65: [2, 35], 7282 68: [2, 35], 7283 72: [2, 35], 7284 75: [2, 35], 7285 80: [2, 35], 7286 81: [2, 35], 7287 82: [2, 35], 7288 83: [2, 35], 7289 84: [2, 35], 7290 85: [2, 35], 7291 }, 7292 { 7293 23: [2, 36], 7294 33: [2, 36], 7295 54: [2, 36], 7296 65: [2, 36], 7297 68: [2, 36], 7298 72: [2, 36], 7299 75: [2, 36], 7300 80: [2, 36], 7301 81: [2, 36], 7302 82: [2, 36], 7303 83: [2, 36], 7304 84: [2, 36], 7305 85: [2, 36], 7306 }, 7307 { 7308 23: [2, 37], 7309 33: [2, 37], 7310 54: [2, 37], 7311 65: [2, 37], 7312 68: [2, 37], 7313 72: [2, 37], 7314 75: [2, 37], 7315 80: [2, 37], 7316 81: [2, 37], 7317 82: [2, 37], 7318 83: [2, 37], 7319 84: [2, 37], 7320 85: [2, 37], 7321 }, 7322 { 7323 23: [2, 38], 7324 33: [2, 38], 7325 54: [2, 38], 7326 65: [2, 38], 7327 68: [2, 38], 7328 72: [2, 38], 7329 75: [2, 38], 7330 80: [2, 38], 7331 81: [2, 38], 7332 82: [2, 38], 7333 83: [2, 38], 7334 84: [2, 38], 7335 85: [2, 38], 7336 }, 7337 { 7338 23: [2, 39], 7339 33: [2, 39], 7340 54: [2, 39], 7341 65: [2, 39], 7342 68: [2, 39], 7343 72: [2, 39], 7344 75: [2, 39], 7345 80: [2, 39], 7346 81: [2, 39], 7347 82: [2, 39], 7348 83: [2, 39], 7349 84: [2, 39], 7350 85: [2, 39], 7351 }, 7352 { 7353 23: [2, 43], 7354 33: [2, 43], 7355 54: [2, 43], 7356 65: [2, 43], 7357 68: [2, 43], 7358 72: [2, 43], 7359 75: [2, 43], 7360 80: [2, 43], 7361 81: [2, 43], 7362 82: [2, 43], 7363 83: [2, 43], 7364 84: [2, 43], 7365 85: [2, 43], 7366 87: [1, 50], 7367 }, 7368 { 72: [1, 35], 86: 51 }, 7369 { 7370 23: [2, 45], 7371 33: [2, 45], 7372 54: [2, 45], 7373 65: [2, 45], 7374 68: [2, 45], 7375 72: [2, 45], 7376 75: [2, 45], 7377 80: [2, 45], 7378 81: [2, 45], 7379 82: [2, 45], 7380 83: [2, 45], 7381 84: [2, 45], 7382 85: [2, 45], 7383 87: [2, 45], 7384 }, 7385 { 7386 52: 52, 7387 54: [2, 82], 7388 65: [2, 82], 7389 72: [2, 82], 7390 80: [2, 82], 7391 81: [2, 82], 7392 82: [2, 82], 7393 83: [2, 82], 7394 84: [2, 82], 7395 85: [2, 82], 7396 }, 7397 { 25: 53, 38: 55, 39: [1, 57], 43: 56, 44: [1, 58], 45: 54, 47: [2, 54] }, 7398 { 28: 59, 43: 60, 44: [1, 58], 47: [2, 56] }, 7399 { 13: 62, 15: [1, 20], 18: [1, 61] }, 7400 { 7401 33: [2, 86], 7402 57: 63, 7403 65: [2, 86], 7404 72: [2, 86], 7405 80: [2, 86], 7406 81: [2, 86], 7407 82: [2, 86], 7408 83: [2, 86], 7409 84: [2, 86], 7410 85: [2, 86], 7411 }, 7412 { 7413 33: [2, 40], 7414 65: [2, 40], 7415 72: [2, 40], 7416 80: [2, 40], 7417 81: [2, 40], 7418 82: [2, 40], 7419 83: [2, 40], 7420 84: [2, 40], 7421 85: [2, 40], 7422 }, 7423 { 7424 33: [2, 41], 7425 65: [2, 41], 7426 72: [2, 41], 7427 80: [2, 41], 7428 81: [2, 41], 7429 82: [2, 41], 7430 83: [2, 41], 7431 84: [2, 41], 7432 85: [2, 41], 7433 }, 7434 { 7435 20: 64, 7436 72: [1, 35], 7437 78: 26, 7438 79: 27, 7439 80: [1, 28], 7440 81: [1, 29], 7441 82: [1, 30], 7442 83: [1, 31], 7443 84: [1, 32], 7444 85: [1, 34], 7445 86: 33, 7446 }, 7447 { 26: 65, 47: [1, 66] }, 7448 { 7449 30: 67, 7450 33: [2, 58], 7451 65: [2, 58], 7452 72: [2, 58], 7453 75: [2, 58], 7454 80: [2, 58], 7455 81: [2, 58], 7456 82: [2, 58], 7457 83: [2, 58], 7458 84: [2, 58], 7459 85: [2, 58], 7460 }, 7461 { 7462 33: [2, 64], 7463 35: 68, 7464 65: [2, 64], 7465 72: [2, 64], 7466 75: [2, 64], 7467 80: [2, 64], 7468 81: [2, 64], 7469 82: [2, 64], 7470 83: [2, 64], 7471 84: [2, 64], 7472 85: [2, 64], 7473 }, 7474 { 7475 21: 69, 7476 23: [2, 50], 7477 65: [2, 50], 7478 72: [2, 50], 7479 80: [2, 50], 7480 81: [2, 50], 7481 82: [2, 50], 7482 83: [2, 50], 7483 84: [2, 50], 7484 85: [2, 50], 7485 }, 7486 { 7487 33: [2, 90], 7488 61: 70, 7489 65: [2, 90], 7490 72: [2, 90], 7491 80: [2, 90], 7492 81: [2, 90], 7493 82: [2, 90], 7494 83: [2, 90], 7495 84: [2, 90], 7496 85: [2, 90], 7497 }, 7498 { 7499 20: 74, 7500 33: [2, 80], 7501 50: 71, 7502 63: 72, 7503 64: 75, 7504 65: [1, 43], 7505 69: 73, 7506 70: 76, 7507 71: 77, 7508 72: [1, 78], 7509 78: 26, 7510 79: 27, 7511 80: [1, 28], 7512 81: [1, 29], 7513 82: [1, 30], 7514 83: [1, 31], 7515 84: [1, 32], 7516 85: [1, 34], 7517 86: 33, 7518 }, 7519 { 72: [1, 79] }, 7520 { 7521 23: [2, 42], 7522 33: [2, 42], 7523 54: [2, 42], 7524 65: [2, 42], 7525 68: [2, 42], 7526 72: [2, 42], 7527 75: [2, 42], 7528 80: [2, 42], 7529 81: [2, 42], 7530 82: [2, 42], 7531 83: [2, 42], 7532 84: [2, 42], 7533 85: [2, 42], 7534 87: [1, 50], 7535 }, 7536 { 7537 20: 74, 7538 53: 80, 7539 54: [2, 84], 7540 63: 81, 7541 64: 75, 7542 65: [1, 43], 7543 69: 82, 7544 70: 76, 7545 71: 77, 7546 72: [1, 78], 7547 78: 26, 7548 79: 27, 7549 80: [1, 28], 7550 81: [1, 29], 7551 82: [1, 30], 7552 83: [1, 31], 7553 84: [1, 32], 7554 85: [1, 34], 7555 86: 33, 7556 }, 7557 { 26: 83, 47: [1, 66] }, 7558 { 47: [2, 55] }, 7559 { 7560 4: 84, 7561 6: 3, 7562 14: [2, 46], 7563 15: [2, 46], 7564 19: [2, 46], 7565 29: [2, 46], 7566 34: [2, 46], 7567 39: [2, 46], 7568 44: [2, 46], 7569 47: [2, 46], 7570 48: [2, 46], 7571 51: [2, 46], 7572 55: [2, 46], 7573 60: [2, 46], 7574 }, 7575 { 47: [2, 20] }, 7576 { 7577 20: 85, 7578 72: [1, 35], 7579 78: 26, 7580 79: 27, 7581 80: [1, 28], 7582 81: [1, 29], 7583 82: [1, 30], 7584 83: [1, 31], 7585 84: [1, 32], 7586 85: [1, 34], 7587 86: 33, 7588 }, 7589 { 7590 4: 86, 7591 6: 3, 7592 14: [2, 46], 7593 15: [2, 46], 7594 19: [2, 46], 7595 29: [2, 46], 7596 34: [2, 46], 7597 47: [2, 46], 7598 48: [2, 46], 7599 51: [2, 46], 7600 55: [2, 46], 7601 60: [2, 46], 7602 }, 7603 { 26: 87, 47: [1, 66] }, 7604 { 47: [2, 57] }, 7605 { 7606 5: [2, 11], 7607 14: [2, 11], 7608 15: [2, 11], 7609 19: [2, 11], 7610 29: [2, 11], 7611 34: [2, 11], 7612 39: [2, 11], 7613 44: [2, 11], 7614 47: [2, 11], 7615 48: [2, 11], 7616 51: [2, 11], 7617 55: [2, 11], 7618 60: [2, 11], 7619 }, 7620 { 15: [2, 49], 18: [2, 49] }, 7621 { 7622 20: 74, 7623 33: [2, 88], 7624 58: 88, 7625 63: 89, 7626 64: 75, 7627 65: [1, 43], 7628 69: 90, 7629 70: 76, 7630 71: 77, 7631 72: [1, 78], 7632 78: 26, 7633 79: 27, 7634 80: [1, 28], 7635 81: [1, 29], 7636 82: [1, 30], 7637 83: [1, 31], 7638 84: [1, 32], 7639 85: [1, 34], 7640 86: 33, 7641 }, 7642 { 7643 65: [2, 94], 7644 66: 91, 7645 68: [2, 94], 7646 72: [2, 94], 7647 80: [2, 94], 7648 81: [2, 94], 7649 82: [2, 94], 7650 83: [2, 94], 7651 84: [2, 94], 7652 85: [2, 94], 7653 }, 7654 { 7655 5: [2, 25], 7656 14: [2, 25], 7657 15: [2, 25], 7658 19: [2, 25], 7659 29: [2, 25], 7660 34: [2, 25], 7661 39: [2, 25], 7662 44: [2, 25], 7663 47: [2, 25], 7664 48: [2, 25], 7665 51: [2, 25], 7666 55: [2, 25], 7667 60: [2, 25], 7668 }, 7669 { 7670 20: 92, 7671 72: [1, 35], 7672 78: 26, 7673 79: 27, 7674 80: [1, 28], 7675 81: [1, 29], 7676 82: [1, 30], 7677 83: [1, 31], 7678 84: [1, 32], 7679 85: [1, 34], 7680 86: 33, 7681 }, 7682 { 7683 20: 74, 7684 31: 93, 7685 33: [2, 60], 7686 63: 94, 7687 64: 75, 7688 65: [1, 43], 7689 69: 95, 7690 70: 76, 7691 71: 77, 7692 72: [1, 78], 7693 75: [2, 60], 7694 78: 26, 7695 79: 27, 7696 80: [1, 28], 7697 81: [1, 29], 7698 82: [1, 30], 7699 83: [1, 31], 7700 84: [1, 32], 7701 85: [1, 34], 7702 86: 33, 7703 }, 7704 { 7705 20: 74, 7706 33: [2, 66], 7707 36: 96, 7708 63: 97, 7709 64: 75, 7710 65: [1, 43], 7711 69: 98, 7712 70: 76, 7713 71: 77, 7714 72: [1, 78], 7715 75: [2, 66], 7716 78: 26, 7717 79: 27, 7718 80: [1, 28], 7719 81: [1, 29], 7720 82: [1, 30], 7721 83: [1, 31], 7722 84: [1, 32], 7723 85: [1, 34], 7724 86: 33, 7725 }, 7726 { 7727 20: 74, 7728 22: 99, 7729 23: [2, 52], 7730 63: 100, 7731 64: 75, 7732 65: [1, 43], 7733 69: 101, 7734 70: 76, 7735 71: 77, 7736 72: [1, 78], 7737 78: 26, 7738 79: 27, 7739 80: [1, 28], 7740 81: [1, 29], 7741 82: [1, 30], 7742 83: [1, 31], 7743 84: [1, 32], 7744 85: [1, 34], 7745 86: 33, 7746 }, 7747 { 7748 20: 74, 7749 33: [2, 92], 7750 62: 102, 7751 63: 103, 7752 64: 75, 7753 65: [1, 43], 7754 69: 104, 7755 70: 76, 7756 71: 77, 7757 72: [1, 78], 7758 78: 26, 7759 79: 27, 7760 80: [1, 28], 7761 81: [1, 29], 7762 82: [1, 30], 7763 83: [1, 31], 7764 84: [1, 32], 7765 85: [1, 34], 7766 86: 33, 7767 }, 7768 { 33: [1, 105] }, 7769 { 7770 33: [2, 79], 7771 65: [2, 79], 7772 72: [2, 79], 7773 80: [2, 79], 7774 81: [2, 79], 7775 82: [2, 79], 7776 83: [2, 79], 7777 84: [2, 79], 7778 85: [2, 79], 7779 }, 7780 { 33: [2, 81] }, 7781 { 7782 23: [2, 27], 7783 33: [2, 27], 7784 54: [2, 27], 7785 65: [2, 27], 7786 68: [2, 27], 7787 72: [2, 27], 7788 75: [2, 27], 7789 80: [2, 27], 7790 81: [2, 27], 7791 82: [2, 27], 7792 83: [2, 27], 7793 84: [2, 27], 7794 85: [2, 27], 7795 }, 7796 { 7797 23: [2, 28], 7798 33: [2, 28], 7799 54: [2, 28], 7800 65: [2, 28], 7801 68: [2, 28], 7802 72: [2, 28], 7803 75: [2, 28], 7804 80: [2, 28], 7805 81: [2, 28], 7806 82: [2, 28], 7807 83: [2, 28], 7808 84: [2, 28], 7809 85: [2, 28], 7810 }, 7811 { 7812 23: [2, 30], 7813 33: [2, 30], 7814 54: [2, 30], 7815 68: [2, 30], 7816 71: 106, 7817 72: [1, 107], 7818 75: [2, 30], 7819 }, 7820 { 23: [2, 98], 33: [2, 98], 54: [2, 98], 68: [2, 98], 72: [2, 98], 75: [2, 98] }, 7821 { 7822 23: [2, 45], 7823 33: [2, 45], 7824 54: [2, 45], 7825 65: [2, 45], 7826 68: [2, 45], 7827 72: [2, 45], 7828 73: [1, 108], 7829 75: [2, 45], 7830 80: [2, 45], 7831 81: [2, 45], 7832 82: [2, 45], 7833 83: [2, 45], 7834 84: [2, 45], 7835 85: [2, 45], 7836 87: [2, 45], 7837 }, 7838 { 7839 23: [2, 44], 7840 33: [2, 44], 7841 54: [2, 44], 7842 65: [2, 44], 7843 68: [2, 44], 7844 72: [2, 44], 7845 75: [2, 44], 7846 80: [2, 44], 7847 81: [2, 44], 7848 82: [2, 44], 7849 83: [2, 44], 7850 84: [2, 44], 7851 85: [2, 44], 7852 87: [2, 44], 7853 }, 7854 { 54: [1, 109] }, 7855 { 7856 54: [2, 83], 7857 65: [2, 83], 7858 72: [2, 83], 7859 80: [2, 83], 7860 81: [2, 83], 7861 82: [2, 83], 7862 83: [2, 83], 7863 84: [2, 83], 7864 85: [2, 83], 7865 }, 7866 { 54: [2, 85] }, 7867 { 7868 5: [2, 13], 7869 14: [2, 13], 7870 15: [2, 13], 7871 19: [2, 13], 7872 29: [2, 13], 7873 34: [2, 13], 7874 39: [2, 13], 7875 44: [2, 13], 7876 47: [2, 13], 7877 48: [2, 13], 7878 51: [2, 13], 7879 55: [2, 13], 7880 60: [2, 13], 7881 }, 7882 { 38: 55, 39: [1, 57], 43: 56, 44: [1, 58], 45: 111, 46: 110, 47: [2, 76] }, 7883 { 7884 33: [2, 70]
7884, 7885 40: 112, 7886 65: [2, 70], 7887 72: [2, 70], 7888 75: [2, 70], 7889 80: [2, 70], 7890 81: [2, 70], 7891 82: [2, 70], 7892 83: [2, 70], 7893 84: [2, 70], 7894 85: [2, 70], 7895 }, 7896 { 47: [2, 18] }, 7897 { 7898 5: [2, 14], 7899 14: [2, 14], 7900 15: [2, 14], 7901 19: [2, 14], 7902 29: [2, 14], 7903 34: [2, 14], 7904 39: [2, 14], 7905 44: [2, 14], 7906 47: [2, 14], 7907 48: [2, 14], 7908 51: [2, 14], 7909 55: [2, 14], 7910 60: [2, 14], 7911 }, 7912 { 33: [1, 113] }, 7913 { 7914 33: [2, 87], 7915 65: [2, 87], 7916 72: [2, 87], 7917 80: [2, 87], 7918 81: [2, 87], 7919 82: [2, 87], 7920 83: [2, 87], 7921 84: [2, 87], 7922 85: [2, 87], 7923 }, 7924 { 33: [2, 89] }, 7925 { 7926 20: 74, 7927 63: 115, 7928 64: 75, 7929 65: [1, 43], 7930 67: 114, 7931 68: [2, 96], 7932 69: 116, 7933 70: 76, 7934 71: 77, 7935 72: [1, 78], 7936 78: 26, 7937 79: 27, 7938 80: [1, 28], 7939 81: [1, 29], 7940 82: [1, 30], 7941 83: [1, 31], 7942 84: [1, 32], 7943 85: [1, 34], 7944 86: 33, 7945 }, 7946 { 33: [1, 117] }, 7947 { 32: 118, 33: [2, 62], 74: 119, 75: [1, 120] }, 7948 { 7949 33: [2, 59], 7950 65: [2, 59], 7951 72: [2, 59], 7952 75: [2, 59], 7953 80: [2, 59], 7954 81: [2, 59], 7955 82: [2, 59], 7956 83: [2, 59], 7957 84: [2, 59], 7958 85: [2, 59], 7959 }, 7960 { 33: [2, 61], 75: [2, 61] }, 7961 { 33: [2, 68], 37: 121, 74: 122, 75: [1, 120] }, 7962 { 7963 33: [2, 65], 7964 65: [2, 65], 7965 72: [2, 65], 7966 75: [2, 65], 7967 80: [2, 65], 7968 81: [2, 65], 7969 82: [2, 65], 7970 83: [2, 65], 7971 84: [2, 65], 7972 85: [2, 65], 7973 }, 7974 { 33: [2, 67], 75: [2, 67] }, 7975 { 23: [1, 123] }, 7976 { 7977 23: [2, 51], 7978 65: [2, 51], 7979 72: [2, 51], 7980 80: [2, 51], 7981 81: [2, 51], 7982 82: [2, 51], 7983 83: [2, 51], 7984 84: [2, 51], 7985 85: [2, 51], 7986 }, 7987 { 23: [2, 53] }, 7988 { 33: [1, 124] }, 7989 { 7990 33: [2, 91], 7991 65: [2, 91], 7992 72: [2, 91], 7993 80: [2, 91], 7994 81: [2, 91], 7995 82: [2, 91], 7996 83: [2, 91], 7997 84: [2, 91], 7998 85: [2, 91], 7999 }, 8000 { 33: [2, 93] }, 8001 { 8002 5: [2, 22], 8003 14: [2, 22], 8004 15: [2, 22], 8005 19: [2, 22], 8006 29: [2, 22], 8007 34: [2, 22], 8008 39: [2, 22], 8009 44: [2, 22], 8010 47: [2, 22], 8011 48: [2, 22], 8012 51: [2, 22], 8013 55: [2, 22], 8014 60: [2, 22], 8015 }, 8016 { 23: [2, 99], 33: [2, 99], 54: [2, 99], 68: [2, 99], 72: [2, 99], 75: [2, 99] }, 8017 { 73: [1, 108] }, 8018 { 8019 20: 74, 8020 63: 125, 8021 64: 75, 8022 65: [1, 43], 8023 72: [1, 35], 8024 78: 26, 8025 79: 27, 8026 80: [1, 28], 8027 81: [1, 29], 8028 82: [1, 30], 8029 83: [1, 31], 8030 84: [1, 32], 8031 85: [1, 34], 8032 86: 33, 8033 }, 8034 { 8035 5: [2, 23], 8036 14: [2, 23], 8037 15: [2, 23], 8038 19: [2, 23], 8039 29: [2, 23], 8040 34: [2, 23], 8041 39: [2, 23], 8042 44: [2, 23], 8043 47: [2, 23], 8044 48: [2, 23], 8045 51: [2, 23], 8046 55: [2, 23], 8047 60: [2, 23], 8048 }, 8049 { 47: [2, 19] }, 8050 { 47: [2, 77] }, 8051 { 8052 20: 74, 8053 33: [2, 72], 8054 41: 126, 8055 63: 127, 8056 64: 75, 8057 65: [1, 43], 8058 69: 128, 8059 70: 76, 8060 71: 77, 8061 72: [1, 78], 8062 75: [2, 72], 8063 78: 26, 8064 79: 27, 8065 80: [1, 28], 8066 81: [1, 29], 8067 82: [1, 30], 8068 83: [1, 31], 8069 84: [1, 32], 8070 85: [1, 34], 8071 86: 33, 8072 }, 8073 { 8074 5: [2, 24], 8075 14: [2, 24], 8076 15: [2, 24], 8077 19: [2, 24], 8078 29: [2, 24], 8079 34: [2, 24], 8080 39: [2, 24], 8081 44: [2, 24], 8082 47: [2, 24], 8083 48: [2, 24], 8084 51: [2, 24], 8085 55: [2, 24], 8086 60: [2, 24], 8087 }, 8088 { 68: [1, 129] }, 8089 { 8090 65: [2, 95], 8091 68: [2, 95], 8092 72: [2, 95], 8093 80: [2, 95], 8094 81: [2, 95], 8095 82: [2, 95], 8096 83: [2, 95], 8097 84: [2, 95], 8098 85: [2, 95], 8099 }, 8100 { 68: [2, 97] }, 8101 { 8102 5: [2, 21], 8103 14: [2, 21], 8104 15: [2, 21], 8105 19: [2, 21], 8106 29: [2, 21], 8107 34: [2, 21], 8108 39: [2, 21], 8109 44: [2, 21], 8110 47: [2, 21], 8111 48: [2, 21], 8112 51: [2, 21], 8113 55: [2, 21], 8114 60: [2, 21], 8115 }, 8116 { 33: [1, 130] }, 8117 { 33: [2, 63] }, 8118 { 72: [1, 132], 76: 131 }, 8119 { 33: [1, 133] }, 8120 { 33: [2, 69] }, 8121 { 15: [2, 12], 18: [2, 12] }, 8122 { 8123 14: [2, 26], 8124 15: [2, 26], 8125 19: [2, 26], 8126 29: [2, 26], 8127 34: [2, 26], 8128 47: [2, 26], 8129 48: [2, 26], 8130 51: [2, 26], 8131 55: [2, 26], 8132 60: [2, 26], 8133 }, 8134 { 23: [2, 31], 33: [2, 31], 54: [2, 31], 68: [2, 31], 72: [2, 31], 75: [2, 31] }, 8135 { 33: [2, 74], 42: 134, 74: 135, 75: [1, 120] }, 8136 { 8137 33: [2, 71], 8138 65: [2, 71], 8139 72: [2, 71], 8140 75: [2, 71], 8141 80: [2, 71], 8142 81: [2, 71], 8143 82: [2, 71], 8144 83: [2, 71], 8145 84: [2, 71], 8146 85: [2, 71], 8147 }, 8148 { 33: [2, 73], 75: [2, 73] }, 8149 { 8150 23: [2, 29], 8151 33: [2, 29], 8152 54: [2, 29], 8153 65: [2, 29], 8154 68: [2, 29], 8155 72: [2, 29], 8156 75: [2, 29], 8157 80: [2, 29], 8158 81: [2, 29], 8159 82: [2, 29], 8160 83: [2, 29], 8161 84: [2, 29], 8162 85: [2, 29], 8163 }, 8164 { 8165 14: [2, 15], 8166 15: [2, 15], 8167 19: [2, 15], 8168 29: [2, 15], 8169 34: [2, 15], 8170 39: [2, 15], 8171 44: [2, 15], 8172 47: [2, 15], 8173 48: [2, 15], 8174 51: [2, 15], 8175 55: [2, 15], 8176 60: [2, 15], 8177 }, 8178 { 72: [1, 137], 77: [1, 136] }, 8179 { 72: [2, 100], 77: [2, 100] }, 8180 { 8181 14: [2, 16], 8182 15: [2, 16], 8183 19: [2, 16], 8184 29: [2, 16], 8185 34: [2, 16], 8186 44: [2, 16], 8187 47: [2, 16], 8188 48: [2, 16], 8189 51: [2, 16], 8190 55: [2, 16], 8191 60: [2, 16], 8192 }, 8193 { 33: [1, 138] }, 8194 { 33: [2, 75] }, 8195 { 33: [2, 32] }, 8196 { 72: [2, 101], 77: [2, 101] }, 8197 { 8198 14: [2, 17], 8199 15: [2, 17], 8200 19: [2, 17], 8201 29: [2, 17], 8202 34: [2, 17], 8203 39: [2, 17], 8204 44: [2, 17], 8205 47: [2, 17], 8206 48: [2, 17], 8207 51: [2, 17], 8208 55: [2, 17], 8209 60: [2, 17], 8210 }, 8211 ], 8212 defaultActions: { 8213 4: [2, 1], 8214 54: [2, 55], 8215 56: [2, 20], 8216 60: [2, 57], 8217 73: [2, 81], 8218 82: [2, 85], 8219 86: [2, 18], 8220 90: [2, 89], 8221 101: [2, 53], 8222 104: [2, 93], 8223 110: [2, 19], 8224 111: [2, 77],
8225 116: [2, 97], 8226 119: [2, 63], 8227 122: [2, 69], 8228 135: [2, 75], 8229 136: [2, 32], 8230 }, 8231 parseError: function (a, b) { 8232 throw new Error(a) 8233 }, 8234 parse: function (a) { 8235 function b() { 8236 var a 8237 return (a = c.lexer.lex() || 1), "number" != typeof a && (a = c.symbols_[a] || a), a 8238 } 8239 var c = this, 8240 d = [0], 8241 e = [null], 8242 f = [], 8243 g = this.table, 8244 h = "", 8245 i = 0, 8246 j = 0, 8247 k = 0 8248 this.lexer.setInput(a), 8249 (this.lexer.yy = this.yy), 8250 (this.yy.lexer = this.lexer), 8251 (this.yy.parser = this), 8252 "undefined" == typeof this.lexer.yylloc && (this.lexer.yylloc = {}) 8253 var l = this.lexer.yylloc 8254 f.push(l) 8255 var m = this.lexer.options && this.lexer.options.ranges 8256 "function" == typeof this.yy.parseError && (this.parseError = this.yy.parseError) 8257 for (var n, o, p, q, r, s, t, u, v, w = {}; ; ) { 8258 if ( 8259 ((p = d[d.length - 1]), 8260 this.defaultActions[p] 8261 ? (q = this.defaultActions[p]) 8262 : ((null !== n && "undefined" != typeof n) || (n = b()), (q = g[p] && g[p][n])), 8263 "undefined" == typeof q || !q.length || !q[0]) 8264 ) { 8265 var x = "" 8266 if (!k) { 8267 v = [] 8268 for (s in g[p]) 8269 this.terminals_[s] && s > 2 && v.push("'" + this.terminals_[s] + "'") 8270 ;(x = this.lexer.showPosition 8271 ? "Parse error on line " + 8272 (i + 1) + 8273 ":\n" + 8274 this.lexer.showPosition() + 8275 "\nExpecting " + 8276 v.join(", ") + 8277 ", got '" + 8278 (this.terminals_[n] || n) + 8279 "'" 8280 : "Parse error on line " + 8281 (i + 1) + 8282 ": Unexpected " + 8283 (1 == n ? "end of input" : "'" + (this.terminals_[n] || n) + "'")), 8284 this.parseError(x, { 8285 text: this.lexer.match, 8286 token: this.terminals_[n] || n, 8287 line: this.lexer.yylineno, 8288 loc: l, 8289 expected: v, 8290 }) 8291 } 8292 } 8293 if (q[0] instanceof Array && q.length > 1) 8294 throw new Error( 8295 "Parse Error: multiple actions possible at state: " + p + ", token: " + n, 8296 ) 8297 switch (q[0]) { 8298 case 1: 8299 d.push(n), 8300 e.push(this.lexer.yytext), 8301 f.push(this.lexer.yylloc), 8302 d.push(q[1]), 8303 (n = null), 8304 o 8305 ? ((n = o), (o = null)) 8306 : ((j = this.lexer.yyleng), 8307 (h = this.lexer.yytext), 8308 (i = this.lexer.yylineno), 8309 (l = this.lexer.yylloc), 8310 k > 0 && k--) 8311 break 8312 case 2: 8313 if ( 8314 ((t = this.productions_[q[1]][1]), 8315 (w.$ = e[e.length - t]), 8316 (w._$ = { 8317 first_line: f[f.length - (t || 1)].first_line, 8318 last_line: f[f.length - 1].last_line, 8319 first_column: f[f.length - (t || 1)].first_column, 8320 last_column: f[f.length - 1].last_column, 8321 }), 8322 m && 8323 (w._$.range = [f[f.length - (t || 1)].range[0], f[f.length - 1].range[1]]), 8324 (r = this.performAction.call(w, h, j, i, this.yy, q[1], e, f)), 8325 "undefined" != typeof r) 8326 ) 8327 return r 8328 t && 8329 ((d = d.slice(0, -1 * t * 2)), 8330 (e = e.slice(0, -1 * t)), 8331 (f = f.slice(0, -1 * t))), 8332 d.push(this.productions_[q[1]][0]), 8333 e.push(w.$), 8334 f.push(w._$), 8335 (u = g[d[d.length - 2]][d[d.length - 1]]), 8336 d.push(u) 8337 break 8338 case 3: 8339 return !0 8340 } 8341 } 8342 return !0 8343 }, 8344 }, 8345 c = (function () { 8346 var a = { 8347 EOF: 1, 8348 parseError: function (a, b) { 8349 if (!this.yy.parser) throw new Error(a) 8350 this.yy.parser.parseError(a, b) 8351 }, 8352 setInput: function (a) { 8353 return ( 8354 (this._input = a), 8355 (this._more = this._less = this.done = !1), 8356 (this.yylineno = this.yyleng = 0), 8357 (this.yytext = this.matched = this.match = ""), 8358 (this.conditionStack = ["INITIAL"]), 8359 (this.yylloc = { first_line: 1, first_column: 0, last_line: 1, last_column: 0 }), 8360 this.options.ranges && (this.yylloc.range = [0, 0]), 8361 (this.offset = 0), 8362 this 8363 ) 8364 }, 8365 input: function () { 8366 var a = this._input[0] 8367 ;(this.yytext += a), 8368 this.yyleng++, 8369 this.offset++, 8370 (this.match += a), 8371 (this.matched += a) 8372 var b = a.match(/(?:\r\n?|\n).*/g) 8373 return ( 8374 b ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, 8375 this.options.ranges && this.yylloc.range[1]++, 8376 (this._input = this._input.slice(1)), 8377 a 8378 ) 8379 }, 8380 unput: function (a) { 8381 var b = a.length, 8382 c = a.split(/(?:\r\n?|\n)/g) 8383 ;(this._input = a + this._input), 8384 (this.yytext = this.yytext.substr(0, this.yytext.length - b - 1)), 8385 (this.offset -= b) 8386 var d = this.match.split(/(?:\r\n?|\n)/g) 8387 ;(this.match = this.match.substr(0, this.match.length - 1)), 8388 (this.matched = this.matched.substr(0, this.matched.length - 1)), 8389 c.length - 1 && (this.yylineno -= c.length - 1) 8390 var e = this.yylloc.range 8391 return ( 8392 (this.yylloc = { 8393 first_line: this.yylloc.first_line, 8394 last_line: this.yylineno + 1, 8395 first_column: this.yylloc.first_column, 8396 last_column: c 8397 ? (c.length === d.length ? this.yylloc.first_column : 0) + 8398 d[d.length - c.length].length - 8399 c[0].length 8400 : this.yylloc.first_column - b, 8401 }), 8402 this.options.ranges && (this.yylloc.range = [e[0], e[0] + this.yyleng - b]), 8403 this 8404 ) 8405 }, 8406 more: function () { 8407 return (this._more = !0), this 8408 }, 8409 less: function (a) { 8410 this.unput(this.match.slice(a)) 8411 }, 8412 pastInput: function () { 8413 var a = this.matched.substr(0, this.matched.length - this.match.length) 8414 return (a.length > 20 ? "..." : "") + a.substr(-20).replace(/\n/g, "") 8415 }, 8416 upcomingInput: function () { 8417 var a = this.match 8418 return ( 8419 a.length < 20 && (a += this._input.substr(0, 20 - a.length)), 8420 (a.substr(0, 20) + (a.length > 20 ? "..." : "")).replace(/\n/g, "") 8421 ) 8422 }, 8423 showPosition: function () { 8424 var a = this.pastInput(), 8425 b = new Array(a.length + 1).join("-") 8426 return a + this.upcomingInput() + "\n" + b + "^" 8427 }, 8428 next: function () { 8429 if (this.done) return this.EOF 8430 this._input || (this.done = !0) 8431 var a, b, c, d, e 8432 this._more || ((this.yytext = ""), (this.match = "")) 8433 for ( 8434 var f = this._currentRules(), g = 0; 8435 g < f.length && 8436 ((c = this._input.match(this.rules[f[g]])), 8437 !c || 8438 (b && !(c[0].length > b[0].length)) || 8439 ((b = c), (d = g), this.options.flex)); 8440 g++ 8441 ); 8442 return b 8443 ? ((e = b[0].match(/(?:\r\n?|\n).*/g)), 8444 e && (this.yylineno += e.length), 8445 (this.yylloc = { 8446 first_line: this.yylloc.last_line, 8447 last_line: this.yylineno + 1, 8448 first_column: this.yylloc.last_column, 8449 last_column: e 8450 ? e[e.length - 1].length - e[e.length - 1].match(/\r?\n?/)[0].length 8451 : this.yylloc.last_column + b[0].length, 8452 }), 8453 (this.yytext += b[0]), 8454 (this.match += b[0]), 8455 (this.matches = b), 8456 (this.yyleng = this.yytext.length), 8457 this.options.ranges && 8458 (this.yylloc.range = [this.offset, (this.offset += this.yyleng)]), 8459 (this._more = !1), 8460 (this._input = this._input.slice(b[0].length)), 8461 (this.matched += b[0]), 8462 (a = this.performAction.call( 8463 this, 8464 this.yy, 8465 this, 8466 f[d], 8467 this.conditionStack[this.conditionStack.length - 1], 8468 )), 8469 this.done && this._input && (this.done = !1), 8470 a ? a : void 0) 8471 : "" === this._input 8472 ? this.EOF 8473 : this.parseError( 8474 "Lexical error on line " + 8475 (this.yylineno + 1) + 8476 ". Unrecognized text.\n" + 8477 this.showPosition(), 8478 { text: "", token: null, line: this.yylineno }, 8479 ) 8480 }, 8481 lex: function () { 8482 var a = this.next() 8483 return "undefined" != typeof a ? a : this.lex() 8484 }, 8485 begin: function (a) { 8486 this.conditionStack.push(a) 8487 }, 8488 popState: function () { 8489 return this.conditionStack.pop() 8490 }, 8491 _currentRules: function () { 8492 return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules 8493 }, 8494 topState: function () { 8495 return this.conditionStack[this.conditionStack.length - 2] 8496 }, 8497 pushState: function (a) { 8498 this.begin(a) 8499 }, 8500 } 8501 return ( 8502 (a.options = {}), 8503 (a.performAction = function (a, b, c, d) { 8504 function e(a, c) { 8505 return (b.yytext = b.yytext.substring(a, b.yyleng - c + a)) 8506 } 8507 switch (c) { 8508 case 0: 8509 if ( 8510 ("\\\\" === b.yytext.slice(-2) 8511 ? (e(0, 1), this.begin("mu")) 8512 : "\\" === b.yytext.slice(-1) 8513 ? (e(0, 1), this.begin("emu")) 8514 : this.begin("mu"), 8515 b.yytext) 8516 ) 8517 return 15 8518 break 8519 case 1: 8520 return 15 8521 case 2: 8522 return this.popState(), 15 8523 case 3: 8524 return this.begin("raw"), 15 8525 case 4: 8526 return ( 8527 this.popState(), 8528 "raw" === this.conditionStack[this.conditionStack.length - 1] 8529 ? 15 8530 : (e(5, 9), "END_RAW_BLOCK") 8531 ) 8532 case 5: 8533 return 15 8534 case 6: 8535 return this.popState(), 14 8536 case 7: 8537 return 65 8538 case 8: 8539 return 68 8540 case 9: 8541 return 19 8542 case 10: 8543 return this.popState(), this.begin("raw"), 23 8544 case 11: 8545 return 55 8546 case 12: 8547 return 60 8548 case 13: 8549 return 29 8550 case 14: 8551 return 47 8552 case 15: 8553 return this.popState(), 44 8554 case 16: 8555 return this.popState(), 44 8556 case 17: 8557 return 34 8558 case 18: 8559 return 39 8560 case 19: 8561 return 51 8562 case 20: 8563 return 48 8564 case 21: 8565 this.unput(b.yytext), this.popState(), this.begin("com") 8566 break 8567 case 22: 8568 return this.popState(), 14 8569 case 23: 8570 return 48 8571 case 24: 8572 return 73 8573 case 25: 8574 return 72 8575 case 26: 8576 return 72 8577 case 27: 8578 return 87 8579 case 28: 8580 break 8581 case 29: 8582 return this.popState(), 54 8583 case 30: 8584 return this.popState(), 33 8585 case 31: 8586 return (b.yytext = e(1, 2).replace(/\\"/g, '"')), 80 8587 case 32: 8588 return (b.yytext = e(1, 2).replace(/\\'/g, "'")), 80 8589 case 33: 8590 return 85 8591 case 34: 8592 return 82 8593 case 35: 8594 return 82 8595 case 36: 8596 return 83 8597 case 37: 8598 return 84 8599 case 38: 8600 return 81 8601 case 39: 8602 return 75 8603 case 40: 8604 return 77 8605 case 41: 8606 return 72 8607 case 42: 8608 return (b.yytext = b.yytext.replace(/\\([\\\]])/g, "$1")), 72 8609 case 43: 8610 return "INVALID" 8611 case 44: 8612 return 5 8613 } 8614 }), 8615 (a.rules = [ 8616 /^(?:[^\x00]*?(?=(\{\{)))/, 8617 /^(?:[^\x00]+)/, 8618 /^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/, 8619 /^(?:\{\{\{\{(?=[^/]))/, 8620 /^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/, 8621 /^(?:[^\x00]+?(?=(\{\{\{\{)))/, 8622 /^(?:[\s\S]*?--(~)?\}\})/, 8623 /^(?:\()/, 8624 /^(?:\))/, 8625 /^(?:\{\{\{\{)/, 8626 /^(?:\}\}\}\})/, 8627 /^(?:\{\{(~)?>)/, 8628 /^(?:\{\{(~)?#>)/, 8629 /^(?:\{\{(~)?#\*?)/, 8630 /^(?:\{\{(~)?\/)/, 8631 /^(?:\{\{(~)?\^\s*(~)?\}\})/, 8632 /^(?:\{\{(~)?\s*else\s*(~)?\}\})/, 8633 /^(?:\{\{(~)?\^)/, 8634 /^(?:\{\{(~
8634)?\s*else\b)/, 8635 /^(?:\{\{(~)?\{)/, 8636 /^(?:\{\{(~)?&)/, 8637 /^(?:\{\{(~)?!--)/, 8638 /^(?:\{\{(~)?![\s\S]*?\}\})/, 8639 /^(?:\{\{(~)?\*?)/, 8640 /^(?:=)/, 8641 /^(?:\.\.)/, 8642 /^(?:\.(?=([=~}\s\/.)|])))/, 8643 /^(?:[\/.])/, 8644 /^(?:\s+)/, 8645 /^(?:\}(~)?\}\})/, 8646 /^(?:(~)?\}\})/, 8647 /^(?:"(\\["]|[^"])*")/, 8648 /^(?:'(\\[']|[^'])*')/, 8649 /^(?:@)/, 8650 /^(?:true(?=([~}\s)])))/, 8651 /^(?:false(?=([~}\s)])))/, 8652 /^(?:undefined(?=([~}\s)])))/, 8653 /^(?:null(?=([~}\s)])))/, 8654 /^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/, 8655 /^(?:as\s+\|)/, 8656 /^(?:\|)/, 8657 /^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/, 8658 /^(?:\[(\\\]|[^\]])*\])/, 8659 /^(?:.)/, 8660 /^(?:$)/, 8661 ]), 8662 (a.conditions = { 8663 mu: { 8664 rules: [ 8665 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 8666 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 8667 ], 8668 inclusive: !1, 8669 }, 8670 emu: { rules: [2], inclusive: !1 }, 8671 com: { rules: [6], inclusive: !1 }, 8672 raw: { rules: [3, 4, 5], inclusive: !1 }, 8673 INITIAL: { rules: [0, 1, 44], inclusive: !0 }, 8674 }), 8675 a 8676 ) 8677 })() 8678 return (b.lexer = c), (a.prototype = b), (b.Parser = a), new a() 8679 })() 8680 ;(b["default"] = c), (a.exports = b["default"]) 8681 }, 8682 function (a, b, c) { 8683 "use strict" 8684 function d() { 8685 var a = arguments.length <= 0 || void 0 === arguments[0] ? {} : arguments[0] 8686 this.options = a 8687 } 8688 function e(a, b, c) { 8689 void 0 === b && (b = a.length) 8690 var d = a[b - 1], 8691 e = a[b - 2] 8692 return d 8693 ? "ContentStatement" === d.type 8694 ? (e || !c ? /\r?\n\s*?$/ : /(^|\r?\n)\s*?$/).test(d.original) 8695 : void 0 8696 : c 8697 } 8698 function f(a, b, c) { 8699 void 0 === b && (b = -1) 8700 var d = a[b + 1], 8701 e = a[b + 2] 8702 return d 8703 ? "ContentStatement" === d.type 8704 ? (e || !c ? /^\s*?\r?\n/ : /^\s*?(\r?\n|$)/).test(d.original) 8705 : void 0 8706 : c 8707 } 8708 function g(a, b, c) { 8709 var d = a[null == b ? 0 : b + 1] 8710 if (d && "ContentStatement" === d.type && (c || !d.rightStripped)) { 8711 var e = d.value 8712 ;(d.value = d.value.replace(c ? /^\s+/ : /^[ \t]*\r?\n?/, "")), 8713 (d.rightStripped = d.value !== e) 8714 } 8715 } 8716 function h(a, b, c) { 8717 var d = a[null == b ? a.length - 1 : b - 1] 8718 if (d && "ContentStatement" === d.type && (c || !d.leftStripped)) { 8719 var e = d.value 8720 return ( 8721 (d.value = d.value.replace(c ? /\s+$/ : /[ \t]+$/, "")), 8722 (d.leftStripped = d.value !== e), 8723 d.leftStripped 8724 ) 8725 } 8726 } 8727 var i = c(1)["default"] 8728 b.__esModule = !0 8729 var j = c(87), 8730 k = i(j) 8731 ;(d.prototype = new k["default"]()), 8732 (d.prototype.Program = function (a) { 8733 var b = !this.options.ignoreStandalone, 8734 c = !this.isRootSeen 8735 this.isRootSeen = !0 8736 for (var d = a.body, i = 0, j = d.length; i < j; i++) { 8737 var k = d[i], 8738 l = this.accept(k) 8739 if (l) { 8740 var m = e(d, i, c), 8741 n = f(d, i, c), 8742 o = l.openStandalone && m, 8743 p = l.closeStandalone && n, 8744 q = l.inlineStandalone && m && n 8745 l.close && g(d, i, !0), 8746 l.open && h(d, i, !0), 8747 b && 8748 q && 8749 (g(d, i), 8750 h(d, i) && 8751 "PartialStatement" === k.type && 8752 (k.indent = /([ \t]+$)/.exec(d[i - 1].original)[1])), 8753 b && o && (g((k.program || k.inverse).body), h(d, i)), 8754 b && p && (g(d, i), h((k.inverse || k.program).body)) 8755 } 8756 } 8757 return a 8758 }), 8759 (d.prototype.BlockStatement = 8760 d.prototype.DecoratorBlock = 8761 d.prototype.PartialBlockStatement = 8762 function (a) { 8763 this.accept(a.program), this.accept(a.inverse) 8764 var b = a.program || a.inverse, 8765 c = a.program && a.inverse, 8766 d = c, 8767 i = c 8768 if (c && c.chained) 8769 for (d = c.body[0].program; i.chained; ) i = i.body[i.body.length - 1].program 8770 var j = { 8771 open: a.openStrip.open, 8772 close: a.closeStrip.close, 8773 openStandalone: f(b.body), 8774 closeStandalone: e((d || b).body), 8775 } 8776 if ((a.openStrip.close && g(b.body, null, !0), c)) { 8777 var k = a.inverseStrip 8778 k.open && h(b.body, null, !0), 8779 k.close && g(d.body, null, !0), 8780 a.closeStrip.open && h(i.body, null, !0), 8781 !this.options.ignoreStandalone && e(b.body) && f(d.body) && (h(b.body), g(d.body)) 8782 } else a.closeStrip.open && h(b.body, null, !0) 8783 return j 8784 }), 8785 (d.prototype.Decorator = d.prototype.MustacheStatement = 8786 function (a) { 8787 return a.strip 8788 }), 8789 (d.prototype.PartialStatement = d.prototype.CommentStatement = 8790 function (a) { 8791 var b = a.strip || {} 8792 return { inlineStandalone: !0, open: b.open, close: b.close } 8793 }), 8794 (b["default"] = d), 8795 (a.exports = b["default"]) 8796 }, 8797 function (a, b, c) { 8798 "use strict" 8799 function d() { 8800 this.parents = [] 8801 } 8802 function e(a) { 8803 this.acceptRequired(a, "path"), this.acceptArray(a.params), this.acceptKey(a, "hash") 8804 } 8805 function f(a) { 8806 e.call(this, a), this.acceptKey(a, "program"), this.acceptKey(a, "inverse") 8807 }
8808 function g(a) { 8809 this.acceptRequired(a, "name"), this.acceptArray(a.params), this.acceptKey(a, "hash") 8810 } 8811 var h = c(1)["default"] 8812 b.__esModule = !0 8813 var i = c(6), 8814 j = h(i) 8815 ;(d.prototype = { 8816 constructor: d, 8817 mutating: !1, 8818 acceptKey: function (a, b) { 8819 var c = this.accept(a[b]) 8820 if (this.mutating) { 8821 if (c && !d.prototype[c.type]) 8822 throw new j["default"]( 8823 'Unexpected node type "' + c.type + '" found when accepting ' + b + " on " + a.type, 8824 ) 8825 a[b] = c 8826 } 8827 }, 8828 acceptRequired: function (a, b) { 8829 if ((this.acceptKey(a, b), !a[b])) throw new j["default"](a.type + " requires " + b) 8830 }, 8831 acceptArray: function (a) { 8832 for (var b = 0, c = a.length; b < c; b++) 8833 this.acceptKey(a, b), a[b] || (a.splice(b, 1), b--, c--) 8834 }, 8835 accept: function (a) { 8836 if (a) { 8837 if (!this[a.type]) throw new j["default"]("Unknown type: " + a.type, a) 8838 this.current && this.parents.unshift(this.current), (this.current = a) 8839 var b = this[a.type](a) 8840 return ( 8841 (this.current = this.parents.shift()), !this.mutating || b ? b : b !== !1 ? a : void 0 8842 ) 8843 } 8844 }, 8845 Program: function (a) { 8846 this.acceptArray(a.body) 8847 }, 8848 MustacheStatement: e, 8849 Decorator: e, 8850 BlockStatement: f, 8851 DecoratorBlock: f, 8852 PartialStatement: g, 8853 PartialBlockStatement: function (a) { 8854 g.call(this, a), this.acceptKey(a, "program") 8855 }, 8856 ContentStatement: function () {}, 8857 CommentStatement: function () {}, 8858 SubExpression: e, 8859 PathExpression: function () {}, 8860 StringLiteral: function () {}, 8861 NumberLiteral: function () {}, 8862 BooleanLiteral: function () {}, 8863 UndefinedLiteral: function () {}, 8864 NullLiteral: function () {}, 8865 Hash: function (a) { 8866 this.acceptArray(a.pairs) 8867 }, 8868 HashPair: function (a) { 8869 this.acceptRequired(a, "value") 8870 }, 8871 }), 8872 (b["default"] = d), 8873 (a.exports = b["default"]) 8874 }, 8875 function (a, b, c) { 8876 "use strict" 8877 function d(a, b) { 8878 if (((b = b.path ? b.path.original : b), a.path.original !== b)) { 8879 var c = { loc: a.path.loc } 8880 throw new q["default"](a.path.original + " doesn't match " + b, c) 8881 } 8882 } 8883 function e(a, b) { 8884 ;(this.source = a), 8885 (this.start = { line: b.first_line, column: b.first_column }), 8886 (this.end = { line: b.last_line, column: b.last_column }) 8887 } 8888 function f(a) { 8889 return /^\[.*\]$/.test(a) ? a.substring(1, a.length - 1) : a 8890 } 8891 function g(a, b) { 8892 return { open: "~" === a.charAt(2), close: "~" === b.charAt(b.length - 3) } 8893 } 8894 function h(a) { 8895 return a.replace(/^\{\{~?!-?-?/, "").replace(/-?-?~?\}\}$/, "") 8896 } 8897 function i(a, b, c) { 8898 c = this.locInfo(c) 8899 for (var d = a ? "@" : "", e = [], f = 0, g = 0, h = b.length; g < h; g++) { 8900 var i = b[g].part, 8901 j = b[g].original !== i 8902 if (((d += (b[g].separator || "") + i), j || (".." !== i && "." !== i && "this" !== i))) 8903 e.push(i) 8904 else { 8905 if (e.length > 0) throw new q["default"]("Invalid path: " + d, { loc: c }) 8906 ".." === i && f++ 8907 } 8908 } 8909 return { type: "PathExpression", data: a, depth: f, parts: e, original: d, loc: c } 8910 } 8911 function j(a, b, c, d, e, f) { 8912 var g = d.charAt(3) || d.charAt(2), 8913 h = "{" !== g && "&" !== g, 8914 i = /\*/.test(d) 8915 return { 8916 type: i ? "Decorator" : "MustacheStatement", 8917 path: a, 8918 params: b, 8919 hash: c, 8920 escaped: h, 8921 strip: e, 8922 loc: this.locInfo(f), 8923 } 8924 } 8925 function k(a, b, c, e) { 8926 d(a, c), (e = this.locInfo(e)) 8927 var f = { type: "Program", body: b, strip: {}, loc: e } 8928 return { 8929 type: "BlockStatement", 8930 path: a.path, 8931 params: a.params, 8932 hash: a.hash, 8933 program: f, 8934 openStrip: {}, 8935 inverseStrip: {}, 8936 closeStrip: {}, 8937 loc: e, 8938 } 8939 } 8940 function l(a, b, c, e, f, g) { 8941 e && e.path && d(a, e) 8942 var h = /\*/.test(a.open) 8943 b.blockParams = a.blockParams 8944 var i = void 0, 8945 j = void 0 8946 if (c) { 8947 if (h) throw new q["default"]("Unexpected inverse block on decorator", c) 8948 c.chain && (c.program.body[0].closeStrip = e.strip), (j = c.strip), (i = c.program) 8949 } 8950 return ( 8951 f && ((f = i), (i = b), (b = f)), 8952 { 8953 type: h ? "DecoratorBlock" : "BlockStatement", 8954 path: a.path, 8955 params: a.params, 8956 hash: a.hash, 8957 program: b, 8958 inverse: i, 8959 openStrip: a.strip, 8960 inverseStrip: j, 8961 closeStrip: e && e.strip, 8962 loc: this.locInfo(g), 8963 } 8964 ) 8965 } 8966 function m(a, b) { 8967 if (!b && a.length) { 8968 var c = a[0].loc, 8969 d = a[a.length - 1].loc 8970 c && 8971 d && 8972 (b = { 8973 source: c.source, 8974 start: { line: c.start.line, column: c.start.column }, 8975 end: { line: d.end.line, column: d.end.column }, 8976 }) 8977 } 8978 return { type: "Program", body: a, strip: {}, loc: b } 8979 } 8980 function n(a, b, c, e) { 8981 return ( 8982 d(a, c), 8983 { 8984 type: "PartialBlockStatement", 8985 name: a.path, 8986 params: a.params, 8987 hash: a.hash, 8988 program: b, 8989 openStrip: a.strip, 8990 closeStrip: c && c.strip, 8991 loc: this.locInfo(e), 8992 } 8993 ) 8994 } 8995 var o = c(1)["default"] 8996 ;
8996(b.__esModule = !0), 8997 (b.SourceLocation = e), 8998 (b.id = f), 8999 (b.stripFlags = g), 9000 (b.stripComment = h), 9001 (b.preparePath = i), 9002 (b.prepareMustache = j), 9003 (b.prepareRawBlock = k), 9004 (b.prepareBlock = l), 9005 (b.prepareProgram = m), 9006 (b.preparePartialBlock = n) 9007 var p = c(6), 9008 q = o(p) 9009 }, 9010 function (a, b, c) { 9011 "use strict" 9012 function d() {} 9013 function e(a, b, c) { 9014 if (null == a || ("string" != typeof a && "Program" !== a.type)) 9015 throw new l["default"]( 9016 "You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + a, 9017 ) 9018 ;(b = b || {}), "data" in b || (b.data = !0), b.compat && (b.useDepths = !0) 9019 var d = c.parse(a, b), 9020 e = new c.Compiler().compile(d, b) 9021 return new c.JavaScriptCompiler().compile(e, b) 9022 } 9023 function f(a, b, c) { 9024 function d() { 9025 var d = c.parse(a, b), 9026 e = new c.Compiler().compile(d, b), 9027 f = new c.JavaScriptCompiler().compile(e, b, void 0, !0) 9028 return c.template(f) 9029 } 9030 function e(a, b) { 9031 return f || (f = d()), f.call(this, a, b) 9032 } 9033 if ((void 0 === b && (b = {}), null == a || ("string" != typeof a && "Program" !== a.type))) 9034 throw new l["default"]( 9035 "You must pass a string or Handlebars AST to Handlebars.compile. You passed " + a, 9036 ) 9037 ;(b = m.extend({}, b)), "data" in b || (b.data = !0), b.compat && (b.useDepths = !0) 9038 var f = void 0 9039 return ( 9040 (e._setup = function (a) { 9041 return f || (f = d()), f._setup(a) 9042 }), 9043 (e._child = function (a, b, c, e) { 9044 return f || (f = d()), f._child(a, b, c, e) 9045 }), 9046 e 9047 ) 9048 } 9049 function g(a, b) { 9050 if (a === b) return !0 9051 if (m.isArray(a) && m.isArray(b) && a.length === b.length) { 9052 for (var c = 0; c < a.length; c++) if (!g(a[c], b[c])) return !1 9053 return !0 9054 } 9055 } 9056 function h(a) { 9057 if (!a.path.parts) { 9058 var b = a.path 9059 a.path = { 9060 type: "PathExpression", 9061 data: !1, 9062 depth: 0, 9063 parts: [b.original + ""], 9064 original: b.original + "", 9065 loc: b.loc, 9066 } 9067 } 9068 } 9069 var i = c(74)["default"], 9070 j = c(1)["default"] 9071 ;(b.__esModule = !0), (b.Compiler = d), (b.precompile = e), (b.compile = f) 9072 var k = c(6), 9073 l = j(k), 9074 m = c(5), 9075 n = c(83), 9076 o = j(n), 9077 p = [].slice 9078 d.prototype = { 9079 compiler: d, 9080 equals: function (a) { 9081 var b = this.opcodes.length 9082 if (a.opcodes.length !== b) return !1 9083 for (var c = 0; c < b; c++) { 9084 var d = this.opcodes[c], 9085 e = a.opcodes[c] 9086 if (d.opcode !== e.opcode || !g(d.args, e.args)) return !1 9087 } 9088 b = this.children.length 9089 for (var c = 0; c < b; c++) if (!this.children[c].equals(a.children[c])) return !1 9090 return !0 9091 }, 9092 guid: 0, 9093 compile: function (a, b) { 9094 return ( 9095 (this.sourceNode = []), 9096 (this.opcodes = []), 9097 (this.children = []), 9098 (this.options = b), 9099 (this.stringParams = b.stringParams), 9100 (this.trackIds = b.trackIds), 9101 (b.blockParams = b.blockParams || []), 9102 (b.knownHelpers = m.extend( 9103 i(null), 9104 { 9105 helperMissing: !0, 9106 blockHelperMissing: !0, 9107 each: !0, 9108 if: !0, 9109 unless: !0, 9110 with: !0, 9111 log: !0, 9112 lookup: !0, 9113 }, 9114 b.knownHelpers, 9115 )), 9116 this.accept(a) 9117 ) 9118 }, 9119 compileProgram: function (a) { 9120 var b = new this.compiler(), 9121 c = b.compile(a, this.options), 9122 d = this.guid++ 9123 return ( 9124 (this.usePartial = this.usePartial || c.usePartial), 9125 (this.children[d] = c), 9126 (this.useDepths = this.useDepths || c.useDepths), 9127 d 9128 ) 9129 }, 9130 accept: function (a) { 9131 if (!this[a.type]) throw new l["default"]("Unknown type: " + a.type, a) 9132 this.sourceNode.unshift(a) 9133 var b = this[a.type](a) 9134 return this.sourceNode.shift(), b 9135 }, 9136 Program: function (a) { 9137 this.options.blockParams.unshift(a.blockParams) 9138 for (var b = a.body, c = b.length, d = 0; d < c; d++) this.accept(b[d]) 9139 return ( 9140 this.options.blockParams.shift(), 9141 (this.isSimple = 1 === c), 9142 (this.blockParams = a.blockParams ? a.blockParams.length : 0), 9143 this 9144 ) 9145 }, 9146 BlockStatement: function (a) { 9147 h(a) 9148 var b = a.program, 9149 c = a.inverse 9150 ;(b = b && this.compileProgram(b)), (c = c && this.compileProgram(c)) 9151 var d = this.classifySexpr(a) 9152 "helper" === d 9153 ? this.helperSexpr(a, b, c) 9154 : "simple" === d
9155 ? (this.simpleSexpr(a), 9156 this.opcode("pushProgram", b), 9157 this.opcode("pushProgram", c), 9158 this.opcode("emptyHash"), 9159 this.opcode("blockValue", a.path.original)) 9160 : (this.ambiguousSexpr(a, b, c), 9161 this.opcode("pushProgram", b), 9162 this.opcode("pushProgram", c), 9163 this.opcode("emptyHash"), 9164 this.opcode("ambiguousBlockValue")), 9165 this.opcode("append") 9166 }, 9167 DecoratorBlock: function (a) { 9168 var b = a.program && this.compileProgram(a.program), 9169 c = this.setupFullMustacheParams(a, b, void 0), 9170 d = a.path 9171 ;(this.useDecorators = !0), this.opcode("registerDecorator", c.length, d.original) 9172 }, 9173 PartialStatement: function (a) { 9174 this.usePartial = !0 9175 var b = a.program 9176 b && (b = this.compileProgram(a.program)) 9177 var c = a.params 9178 if (c.length > 1) 9179 throw new l["default"]("Unsupported number of partial arguments: " + c.length, a) 9180 c.length || 9181 (this.options.explicitPartialContext 9182 ? this.opcode("pushLiteral", "undefined") 9183 : c.push({ type: "PathExpression", parts: [], depth: 0 })) 9184 var d = a.name.original, 9185 e = "SubExpression" === a.name.type 9186 e && this.accept(a.name), this.setupFullMustacheParams(a, b, void 0, !0) 9187 var f = a.indent || "" 9188 this.options.preventIndent && f && (this.opcode("appendContent", f), (f = "")), 9189 this.opcode("invokePartial", e, d, f), 9190 this.opcode("append") 9191 }, 9192 PartialBlockStatement: function (a) { 9193 this.PartialStatement(a) 9194 }, 9195 MustacheStatement: function (a) { 9196 this.SubExpression(a), 9197 a.escaped && !this.options.noEscape 9198 ? this.opcode("appendEscaped") 9199 : this.opcode("append") 9200 }, 9201 Decorator: function (a) { 9202 this.DecoratorBlock(a) 9203 }, 9204 ContentStatement: function (a) { 9205 a.value && this.opcode("appendContent", a.value) 9206 }, 9207 CommentStatement: function () {}, 9208 SubExpression: function (a) { 9209 h(a) 9210 var b = this.classifySexpr(a) 9211 "simple" === b 9212 ? this.simpleSexpr(a) 9213 : "helper" === b 9214 ? this.helperSexpr(a) 9215 : this.ambiguousSexpr(a) 9216 }, 9217 ambiguousSexpr: function (a, b, c) { 9218 var d = a.path, 9219 e = d.parts[0], 9220 f = null != b || null != c 9221 this.opcode("getContext", d.depth), 9222 this.opcode("pushProgram", b), 9223 this.opcode("pushProgram", c), 9224 (d.strict = !0), 9225 this.accept(d), 9226 this.opcode("invokeAmbiguous", e, f) 9227 },
9228 simpleSexpr: function (a) { 9229 var b = a.path 9230 ;(b.strict = !0), this.accept(b), this.opcode("resolvePossibleLambda") 9231 }, 9232 helperSexpr: function (a, b, c) { 9233 var d = this.setupFullMustacheParams(a, b, c), 9234 e = a.path, 9235 f = e.parts[0] 9236 if (this.options.knownHelpers[f]) this.opcode("invokeKnownHelper", d.length, f) 9237 else { 9238 if (this.options.knownHelpersOnly) 9239 throw new l["default"]( 9240 "You specified knownHelpersOnly, but used the unknown helper " + f, 9241 a, 9242 ) 9243 ;(e.strict = !0), 9244 (e.falsy = !0), 9245 this.accept(e), 9246 this.opcode("invokeHelper", d.length, e.original, o["default"].helpers.simpleId(e)) 9247 } 9248 }, 9249 PathExpression: function (a) { 9250 this.addDepth(a.depth), this.opcode("getContext", a.depth) 9251 var b = a.parts[0], 9252 c = o["default"].helpers.scopedId(a), 9253 d = !a.depth && !c && this.blockParamIndex(b) 9254 d 9255 ? this.opcode("lookupBlockParam", d, a.parts) 9256 : b 9257 ? a.data 9258 ? ((this.options.data = !0), this.opcode("lookupData", a.depth, a.parts, a.strict)) 9259 : this.opcode("lookupOnContext", a.parts, a.falsy, a.strict, c) 9260 : this.opcode("pushContext") 9261 }, 9262 StringLiteral: function (a) { 9263 this.opcode("pushString", a.value) 9264 }, 9265 NumberLiteral: function (a) { 9266 this.opcode("pushLiteral", a.value) 9267 }, 9268 BooleanLiteral: function (a) { 9269 this.opcode("pushLiteral", a.value) 9270 }, 9271 UndefinedLiteral: function () { 9272 this.opcode("pushLiteral", "undefined") 9273 }, 9274 NullLiteral: function () { 9275 this.opcode("pushLiteral", "null") 9276 }, 9277 Hash: function (a) { 9278 var b = a.pairs, 9279 c = 0, 9280 d = b.length 9281 for (this.opcode("pushHash"); c < d; c++) this.pushParam(b[c].value) 9282 for (; c--; ) this.opcode("assignToHash", b[c].key) 9283 this.opcode("popHash") 9284 }, 9285 opcode: function (a) { 9286 this.opcodes.push({ opcode: a, args: p.call(arguments, 1), loc: this.sourceNode[0].loc }) 9287 }, 9288 addDepth: function (a) { 9289 a && (this.useDepths = !0) 9290 }, 9291 classifySexpr: function (a) { 9292 var b = o["default"].helpers.simpleId(a.path), 9293 c = b && !!this.blockParamIndex(a.path.parts[0]), 9294 d = !c && o["default"].helpers.helperExpression(a), 9295 e = !c && (d || b) 9296 if (e && !d) { 9297 var f = a.path.parts[0], 9298 g = this.options 9299 g.knownHelpers[f] ? (d = !0) : g.knownHelpersOnly && (e = !1) 9300 } 9301 return d ? "helper" : e ? "ambiguous" : "simple" 9302 }, 9303 pushParams: function (a) { 9304 for (var b = 0, c = a.length; b < c; b++) this.pushParam(a[b]) 9305 }, 9306 pushParam: function (a) { 9307 var b = null != a.value ? a.value : a.original || "" 9308 if (this.stringParams) 9309 b.replace && (b = b.replace(/^(\.?\.\/)*/g, "").replace(/\//g, ".")), 9310 a.depth && this.addDepth(a.depth), 9311 this.opcode("getContext", a.depth || 0), 9312 this.opcode("pushStringParam", b, a.type), 9313 "SubExpression" === a.type && this.accept(a) 9314 else { 9315 if (this.trackIds) { 9316 var c = void 0 9317 if ( 9318 (!a.parts || 9319 o["default"].helpers.scopedId(a) || 9320 a.depth || 9321 (c = this.blockParamIndex(a.parts[0])), 9322 c) 9323 ) { 9324 var d = a.parts.slice(1).join(".") 9325 this.opcode("pushId", "BlockParam", c, d) 9326 } else 9327 (b = a.original || b), 9328 b.replace && 9329 (b = b 9330 .replace(/^this(?:\.|$)/, "") 9331 .replace(/^\.\//, "") 9332 .replace(/^\.$/, "")), 9333 this.opcode("pushId", a.type, b) 9334 } 9335 this.accept(a) 9336 } 9337 }, 9338 setupFullMustacheParams: function (a, b, c, d) { 9339 var e = a.params 9340 return ( 9341 this.pushParams(e), 9342 this.opcode("pushProgram", b), 9343 this.opcode("pushProgram", c), 9344 a.hash ? this.accept(a.hash) : this.opcode("emptyHash", d), 9345 e 9346 ) 9347 }, 9348 blockParamIndex: function (a) { 9349 for (var b = 0, c = this.options.blockParams.length; b < c; b++) { 9350 var d = this.options.blockParams[b], 9351 e = d && m.indexOf(d, a) 9352 if (d && e >= 0) return [b, e] 9353 } 9354 }, 9355 } 9356 }, 9357 function (a, b, c) { 9358 "use strict" 9359 function d(a) { 9360 this.value = a 9361 } 9362 function e() {} 9363 function f(a, b, c, d, e) { 9364 var f = b.popStack(), 9365 g = c.length 9366 a && g-- 9367 for (var h = d; h < g; h++) f = b.nameLookup(f, c[h], e) 9368 return a 9369 ? [ 9370 b.aliasable("container.strict"), 9371 "(", 9372 f, 9373 ", ", 9374 b.quotedString(c[g]), 9375 ", ", 9376 JSON.stringify(b.source.currentLocation), 9377 " )", 9378 ] 9379 : f 9380 } 9381 var g = c(60)["default"], 9382 h = c(1)["default"] 9383 b.__esModule = !0 9384 var i = c(4), 9385 j = c(6), 9386 k = h(j), 9387 l = c(5), 9388 m = c(91), 9389 n = h(m) 9390 ;(e.prototype = { 9391 nameLookup: function (a, b) { 9392 return this.internalNameLookup(a, b) 9393 }, 9394 depthedLookup: function (a) { 9395 return [this.aliasable("container.lookup"), "(depths, ", JSON.stringify(a), ")"] 9396 }, 9397 compilerInfo: function () { 9398 var a = i.COMPILER_REVISION, 9399 b = i.REVISION_CHANGES[a] 9400 return [a, b] 9401 }, 9402 appendToBuffer: function (a, b, c) { 9403 return ( 9404 l.isArray(a) || (a = [a]), 9405 (a = this.source.wrap(a, b)), 9406 this.environment.isSimple 9407 ? ["return ", a, ";"] 9408 : c 9409 ? ["buffer += ", a, ";"] 9410 : ((a.appendToBuffer = !0), a) 9411 ) 9412 }, 9413 initializeBuffer: function () { 9414 return this.quotedString("") 9415 }, 9416 internalNameLookup: function (a, b) { 9417 return ( 9418 (this.lookupPropertyFunctionIsUsed = !0), 9419 ["lookupProperty(", a, ",", JSON.stringify(b), ")"] 9420 ) 9421 }, 9422 lookupPropertyFunctionIsUsed: !1, 9423 compile: function (a, b, c, d) { 9424 ;(this.environment = a), 9425 (this.options = b), 9426 (this.stringParams = this.options.stringParams), 9427 (this.trackIds = this.options.trackIds),
9428 (this.precompile = !d), 9429 (this.name = this.environment.name), 9430 (this.isChild = !!c), 9431 (this.context = c || { decorators: [], programs: [], environments: [] }), 9432 this.preamble(), 9433 (this.stackSlot = 0), 9434 (this.stackVars = []), 9435 (this.aliases = {}), 9436 (this.registers = { list: [] }), 9437 (this.hashes = []), 9438 (this.compileStack = []), 9439 (this.inlineStack = []), 9440 (this.blockParams = []), 9441 this.compileChildren(a, b), 9442 (this.useDepths = 9443 this.useDepths || a.useDepths || a.useDecorators || this.options.compat), 9444 (this.useBlockParams = this.useBlockParams || a.useBlockParams) 9445 var e = a.opcodes, 9446 f = void 0, 9447 g = void 0, 9448 h = void 0, 9449 i = void 0 9450 for (h = 0, i = e.length; h < i; h++) 9451 (f = e[h]), 9452 (this.source.currentLocation = f.loc), 9453 (g = g || f.loc), 9454 this[f.opcode].apply(this, f.args) 9455 if ( 9456 ((this.source.currentLocation = g), 9457 this.pushSource(""), 9458 this.stackSlot || this.inlineStack.length || this.compileStack.length) 9459 ) 9460 throw new k["default"]("Compile completed with content left on stack") 9461 this.decorators.isEmpty() 9462 ? (this.decorators = void 0) 9463 : ((this.useDecorators = !0), 9464 this.decorators.prepend([ 9465 "var decorators = container.decorators, ", 9466 this.lookupPropertyFunctionVarDeclaration(), 9467 ";\n", 9468 ]), 9469 this.decorators.push("return fn;"), 9470 d 9471 ? (this.decorators = Function.apply(this, [ 9472 "fn", 9473 "props", 9474 "container", 9475 "depth0", 9476 "data", 9477 "blockParams", 9478 "depths", 9479 this.decorators.merge(), 9480 ])) 9481 : (this.decorators.prepend( 9482 "function(fn, props, container, depth0, data, blockParams, depths) {\n", 9483 ), 9484 this.decorators.push("}\n"), 9485 (this.decorators = this.decorators.merge()))) 9486 var j = this.createFunctionContext(d) 9487 if (this.isChild) return j 9488 var l = { compiler: this.compilerInfo(), main: j } 9489 this.decorators && ((l.main_d = this.decorators), (l.useDecorators = !0)) 9490 var m = this.context, 9491 n = m.programs, 9492 o = m.decorators 9493 for (h = 0, i = n.length; h < i; h++) 9494 (l[h] = n[h]), o[h] && ((l[h + "_d"] = o[h]), (l.useDecorators = !0)) 9495 return ( 9496 this.environment.usePartial && (l.usePartial = !0), 9497 this.options.data && (l.useData = !0), 9498 this.useDepths && (l.useDepths = !0), 9499 this.useBlockParams && (l.useBlockParams = !0), 9500 this.options.compat && (l.compat = !0), 9501 d 9502 ? (l.compilerOptions = this.options) 9503 : ((l.compiler = JSON.stringify(l.compiler)), 9504 (this.source.currentLocation = { start: { line: 1, column: 0 } }), 9505 (l = this.objectLiteral(l)), 9506 b.srcName 9507 ? ((l = l.toStringWithSourceMap({ file: b.destName })), 9508 (l.map = l.map && l.map.toString())) 9509 : (l = l.toString())), 9510 l 9511 ) 9512 }, 9513 preamble: function () { 9514 ;(this.lastContext = 0), 9515 (this.source = new n["default"](this.options.srcName)), 9516 (this.decorators = new n["default"](this.options.srcName)) 9517 }, 9518 createFunctionContext: function (a) { 9519 var b = this, 9520 c = "", 9521 d = this.stackVars.concat(this.registers.list) 9522 d.length > 0 && (c += ", " + d.join(", ")) 9523 var e = 0 9524 g(this.aliases).forEach(function (a) { 9525 var d = b.aliases[a] 9526 d.children && 9527 d.referenceCount > 1 && 9528 ((c += ", alias" + ++e + "=" + a), (d.children[0] = "alias" + e)) 9529 }), 9530 this.lookupPropertyFunctionIsUsed && 9531 (c += ", " + this.lookupPropertyFunctionVarDeclaration()) 9532 var f = ["container", "depth0", "helpers", "partials", "data"] 9533 ;(this.useBlockParams || this.useDepths) && f.push("blockParams"), 9534 this.useDepths && f.push("depths") 9535 var h = this.mergeSource(c) 9536 return a 9537 ? (f.push(h), Function.apply(this, f)) 9538 : this.source.wrap(["function(", f.join(","), ") {\n ", h, "}"]) 9539 }, 9540 mergeSource: function (a) { 9541 var b = this.environment.isSimple, 9542 c = !this.forceBuffer, 9543 d = void 0, 9544 e = void 0, 9545 f = void 0, 9546 g = void 0 9547 return ( 9548 this.source.each(function (a) { 9549 a.appendToBuffer
9550 ? (f ? a.prepend(" + ") : (f = a), (g = a)) 9551 : (f && (e ? f.prepend("buffer += ") : (d = !0), g.add(";"), (f = g = void 0)), 9552 (e = !0), 9553 b || (c = !1)) 9554 }), 9555 c 9556 ? f 9557 ? (f.prepend("return "), g.add(";")) 9558 : e || this.source.push('return "";') 9559 : ((a += ", buffer = " + (d ? "" : this.initializeBuffer())), 9560 f 9561 ? (f.prepend("return buffer + "), g.add(";")) 9562 : this.source.push("return buffer;")), 9563 a && this.source.prepend("var " + a.substring(2) + (d ? "" : ";\n")), 9564 this.source.merge() 9565 ) 9566 }, 9567 lookupPropertyFunctionVarDeclaration: function () { 9568 return "\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim() 9569 }, 9570 blockValue: function (a) { 9571 var b = this.aliasable("container.hooks.blockHelperMissing"), 9572 c = [this.contextName(0)] 9573 this.setupHelperArgs(a, 0, c) 9574 var d = this.popStack() 9575 c.splice(1, 0, d), this.push(this.source.functionCall(b, "call", c)) 9576 }, 9577 ambiguousBlockValue: function () { 9578 var a = this.aliasable("container.hooks.blockHelperMissing"), 9579 b = [this.contextName(0)] 9580 this.setupHelperArgs("", 0, b, !0), this.flushInline() 9581 var c = this.topStack() 9582 b.splice(1, 0, c), 9583 this.pushSource([ 9584 "if (!", 9585 this.lastHelper, 9586 ") { ", 9587 c, 9588 " = ", 9589 this.source.functionCall(a, "call", b), 9590 "}", 9591 ]) 9592 }, 9593 appendContent: function (a) { 9594 this.pendingContent 9595 ? (a = this.pendingContent + a) 9596 : (this.pendingLocation = this.source.currentLocation), 9597 (this.pendingContent = a) 9598 }, 9599 append: function () { 9600 if (this.isInline()) 9601 this.replaceStack(function (a) { 9602 return [" != null ? ", a, ' : ""'] 9603 }), 9604 this.pushSource(this.appendToBuffer(this.popStack())) 9605 else { 9606 var a = this.popStack() 9607 this.pushSource(["if (", a, " != null) { ", this.appendToBuffer(a, void 0, !0), " }"]), 9608 this.environment.isSimple && 9609 this.pushSource(["else { ", this.appendToBuffer("''", void 0, !0), " }"]) 9610 } 9611 }, 9612 appendEscaped: function () { 9613 this.pushSource( 9614 this.appendToBuffer([ 9615 this.aliasable("container.escapeExpression"), 9616 "(", 9617 this.popStack(), 9618 ")", 9619 ]), 9620 ) 9621 }, 9622 getContext: function (a) { 9623 this.lastContext = a 9624 }, 9625 pushContext: function () { 9626 this.pushStackLiteral(this.contextName(this.lastContext)) 9627 }, 9628 lookupOnContext: function (a, b, c, d) { 9629 var e = 0 9630 d || !this.options.compat || this.lastContext 9631 ? this.pushContext() 9632 : this.push(this.depthedLookup(a[e++])), 9633 this.resolvePath("context", a, e, b, c) 9634 }, 9635 lookupBlockParam: function (a, b) { 9636 ;(this.useBlockParams = !0), 9637 this.push(["blockParams[", a[0], "][", a[1], "]"]), 9638 this.resolvePath("context", b, 1) 9639 }, 9640 lookupData: function (a, b, c) { 9641 a 9642 ? this.pushStackLiteral("container.data(data, " + a + ")") 9643 : this.pushStackLiteral("data"), 9644 this.resolvePath("data", b, 0, !0, c) 9645 }, 9646 resolvePath: function (a, b, c, d, e) { 9647 var g = this 9648 if (this.options.strict || this.options.assumeObjects) 9649 return void this.push(f(this.options.strict && e, this, b, c, a)) 9650 for ( 9651 var h = b.length, 9652 i = function (c) { 9653 g.replaceStack(function (e) { 9654 var f = g.nameLookup(e, b[c], a) 9655 return d ? [" && ", f] : [" != null ? ", f, " : ", e] 9656 }) 9657 }, 9658 j = c; 9659 j < h; 9660 j++ 9661 ) 9662 i(j) 9663 }, 9664 resolvePossibleLambda: function () { 9665 this.push([ 9666 this.aliasable("container.lambda"), 9667 "(", 9668 this.popStack(), 9669 ", ", 9670 this.contextName(0), 9671 ")", 9672 ]) 9673 }, 9674 pushStringParam: function (a, b) { 9675 this.pushContext(), 9676 this.pushString(b), 9677 "SubExpression" !== b && 9678 ("string" == typeof a ? this.pushString(a) : this.pushStackLiteral(a)) 9679 }, 9680 emptyHash: function (a) { 9681 this.trackIds && this.push("{}"), 9682 this.stringParams && (this.push("{}"), this.push("{}")), 9683 this.pushStackLiteral(a ? "undefined" : "{}") 9684 }, 9685 pushHash: function () { 9686 this.hash && this.hashes.push(this.hash), 9687 (this.hash = { values: {}, types: [], contexts: [], ids: [] }) 9688 }, 9689 popHash: function () { 9690 var a = this.hash 9691 ;(this.hash = this.hashes.pop()), 9692 this.trackIds && this.push(this.objectLiteral(a.ids)), 9693 this.stringParams && 9694 (this.push(this.objectLiteral(a.contexts)), this.push(this.objectLiteral(a.types))), 9695 this.push(this.objectLiteral(a.values)) 9696 }, 9697 pushString: function (a) { 9698 this.pushStackLiteral(this.quotedString(a)) 9699 }, 9700 pushLiteral: function (a) { 9701 this.pushStackLiteral(a) 9702 }, 9703 pushProgram: function (a) { 9704 null != a ? this.pushStackLiteral(this.programExpression(a)) : this.pushStackLiteral(null) 9705 }, 9706 registerDecorator: function (a, b) { 9707 var c = this.nameLookup("decorators", b, "decorator"), 9708 d = this.setupHelperArgs(b, a) 9709 this.decorators.push(["var decorator = ", c, ";"]), 9710 this.decorators.push([ 9711 'if (typeof decorator !== "function") { throw new Error(', 9712 this.quotedString('Missing decorator: "' + b + '"'), 9713 "); }", 9714 ]), 9715 this.decorators.push([ 9716 "fn = ", 9717 this.decorators.functionCall("decorator", "", ["fn", "props", "container", d]), 9718 " || fn;", 9719 ]) 9720 }, 9721 invokeHelper: function (a, b, c) { 9722 var d = this.popStack(), 9723 e = this.setupHelper(a, b), 9724 f = [] 9725 c && f.push(e.name), 9726 f.push(d), 9727 this.options.strict || f.push(this.aliasable("container.hooks.helperMissing")) 9728 var g = ["(", this.itemsSeparatedBy(f, "||"), ")"], 9729 h = this.source.functionCall(g, "call", e.callParams) 9730 this.push(h) 9731 }, 9732 itemsSeparatedBy: function (a, b) { 9733 var c = [] 9734 c.push(a[0]) 9735 for (var d = 1; d < a.length; d++) c.push(b, a[d]) 9736 return c 9737 }, 9738 invokeKnownHelper: function (a, b) { 9739 var c = this.setupHelper(a, b) 9740 this.push(this.source.functionCall(c.name, "call", c.callParams)) 9741 }, 9742 invokeAmbiguous: function (a, b) { 9743 this.useRegister("helper") 9744 var c = this.popStack() 9745 this.emptyHash() 9746 var d = this.setupHelper(0, a, b), 9747 e = (this.lastHelper = this.nameLookup("helpers", a, "helper")), 9748 f = ["(", "(helper = ", e, " || ", c, ")"] 9749 this.options.strict || 9750 ((f[0] = "(helper = "), 9751 f.push(" != null ? helper : ", this.aliasable("container.hooks.helperMissing"))), 9752 this.push([ 9753 "(", 9754 f, 9755 d.paramsInit ? ["),(", d.paramsInit] : [], 9756 "),", 9757 "(typeof helper === ", 9758 this.aliasable('"function"'), 9759 " ? ", 9760 this.source.functionCall("helper", "call", d.callParams), 9761 " : helper))", 9762 ]) 9763 }, 9764 invokePartial: function (a, b, c) { 9765 var d = [], 9766 e = this.setupParams(b, 1, d) 9767 a && ((b = this.popStack()), delete e.name), 9768 c && (e.indent = JSON.stringify(c)), 9769 (e.helpers = "helpers"), 9770 (e.partials = "partials"), 9771 (e.decorators = "container.decorators"), 9772 a ? d.unshift(b) : d.unshift(this.nameLookup("partials", b, "partial")), 9773 this.options.compat && (e.depths = "depths"), 9774 (e = this.objectLiteral(e)), 9775 d.push(e), 9776 this.push(this.source.functionCall("container.invokePartial", "", d)) 9777 }, 9778 assignToHash: function (a) { 9779 var b = this.popStack(), 9780 c = void 0, 9781 d = void 0, 9782 e = void 0 9783 this.trackIds && (e = this.popStack()), 9784 this.stringParams && ((d = this.popStack()), (c = this.popStack())) 9785 var f = this.hash 9786 c && (f.contexts[a] = c), d && (f.types[a] = d), e && (f.ids[a] = e), (f.values[a] = b) 9787 }, 9788 pushId: function (a, b, c) { 9789 "BlockParam" === a 9790 ? this.pushStackLiteral( 9791 "blockParams[" + 9792 b[0] + 9793 "].path[" + 9794 b[1] + 9795 "]" + 9796 (c ? " + " + JSON.stringify("." + c) : ""), 9797 ) 9798 : "PathExpression" === a 9799 ? this.pushString(b) 9800 : "SubExpression" === a 9801 ? this.pushStackLiteral("true") 9802 : this.pushStackLiteral("null") 9803 }, 9804 compiler: e, 9805 compileChildren: function (a, b) { 9806 for (var c = a.children, d = void 0, e = void 0, f = 0, g = c.length; f < g; f++) { 9807 ;(d = c[f]), (e = new this.compiler()) 9808 var h = this.matchExistingProgram(d) 9809 if (null == h) { 9810 var i = this.context.programs.push("") - 1 9811 ;(d.index = i), 9812 (d.name = "program" + i), 9813 (this.context.programs[i] = e.compile(d, b, this.context, !this.prec
9813ompile)), 9814 (this.context.decorators[i] = e.decorators), 9815 (this.context.environments[i] = d), 9816 (this.useDepths = this.useDepths || e.useDepths), 9817 (this.useBlockParams = this.useBlockParams || e.useBlockParams), 9818 (d.useDepths = this.useDepths), 9819 (d.useBlockParams = this.useBlockParams) 9820 } else 9821 (d.index = h.index), 9822 (d.name = "program" + h.index), 9823 (this.useDepths = this.useDepths || h.useDepths), 9824 (this.useBlockParams = this.useBlockParams || h.useBlockParams) 9825 } 9826 }, 9827 matchExistingProgram: function (a) { 9828 for (var b = 0, c = this.context.environments.length; b < c; b++) { 9829 var d = this.context.environments[b] 9830 if (d && d.equals(a)) return d 9831 } 9832 }, 9833 programExpression: function (a) { 9834 var b = this.environment.children[a], 9835 c = [b.index, "data", b.blockParams] 9836 return ( 9837 (this.useBlockParams || this.useDepths) && c.push("blockParams"), 9838 this.useDepths && c.push("depths"), 9839 "container.program(" + c.join(", ") + ")" 9840 ) 9841 }, 9842 useRegister: function (a) { 9843 this.registers[a] || ((this.registers[a] = !0), this.registers.list.push(a)) 9844 }, 9845 push: function (a) { 9846 return a instanceof d || (a = this.source.wrap(a)), this.inlineStack.push(a), a 9847 }, 9848 pushStackLiteral: function (a) { 9849 this.push(new d(a)) 9850 }, 9851 pushSource: function (a) { 9852 this.pendingContent && 9853 (this.source.push( 9854 this.appendToBuffer( 9855 this.source.quotedString(this.pendingContent), 9856 this.pendingLocation, 9857 ), 9858 ), 9859 (this.pendingContent = void 0)), 9860 a && this.source.push(a) 9861 }, 9862 replaceStack: function (a) { 9863 var b = ["("], 9864 c = void 0, 9865 e = void 0, 9866 f = void 0 9867 if (!this.isInline()) throw new k["default"]("replaceStack on non-inline") 9868 var g = this.popStack(!0) 9869 if (g instanceof d) (c = [g.value]), (b = ["(", c]), (f = !0) 9870 else { 9871 e = !0 9872 var h = this.incrStack() 9873 ;(b = ["((", this.push(h), " = ", g, ")"]), (c = this.topStack()) 9874 } 9875 var i = a.call(this, c) 9876 f || this.popStack(), e && this.stackSlot--, this.push(b.concat(i, ")")) 9877 }, 9878 incrStack: function () { 9879 return ( 9880 this.stackSlot++, 9881 this.stackSlot > this.stackVars.length && this.stackVars.push("stack" + this.stackSlot), 9882 this.topStackName() 9883 ) 9884 }, 9885 topStackName: function () { 9886 return "stack" + this.stackSlot 9887 }, 9888 flushInline: function () { 9889 var a = this.inlineStack 9890 this.inlineStack = [] 9891 for (var b = 0, c = a.length; b < c; b++) { 9892 var e = a[b] 9893 if (e instanceof d) this.compileStack.push(e) 9894 else { 9895 var f = this.incrStack() 9896 this.pushSource([f, " = ", e, ";"]), this.compileStack.push(f) 9897 } 9898 } 9899 }, 9900 isInline: function () { 9901 return this.inlineStack.length 9902 }, 9903 popStack: function (a) { 9904 var b = this.isInline(), 9905 c = (b ? this.inlineStack : this.compileStack).pop() 9906 if (!a && c instanceof d) return c.value 9907 if (!b) { 9908 if (!this.stackSlot) throw new k["default"]("Invalid stack pop") 9909 this.stackSlot-- 9910 } 9911 return c 9912 }, 9913 topStack: function () { 9914 var a = this.isInline() ? this.inlineStack : this.compileStack, 9915 b = a[a.length - 1] 9916 return b instanceof d ? b.value : b 9917 }, 9918 contextName: function (a) { 9919 return this.useDepths && a ? "depths[" + a + "]" : "depth" + a 9920 }, 9921 quotedString: function (a) { 9922 return this.source.quotedString(a) 9923 },
9924 objectLiteral: function (a) { 9925 return this.source.objectLiteral(a) 9926 }, 9927 aliasable: function (a) { 9928 var b = this.aliases[a] 9929 return b 9930 ? (b.referenceCount++, b) 9931 : ((b = this.aliases[a] = this.source.wrap(a)), 9932 (b.aliasable = !0), 9933 (b.referenceCount = 1), 9934 b) 9935 }, 9936 setupHelper: function (a, b, c) { 9937 var d = [], 9938 e = this.setupHelperArgs(b, a, d, c), 9939 f = this.nameLookup("helpers", b, "helper"), 9940 g = this.aliasable( 9941 this.contextName(0) + 9942 " != null ? " + 9943 this.contextName(0) + 9944 " : (container.nullContext || {})", 9945 ) 9946 return { params: d, paramsInit: e, name: f, callParams: [g].concat(d) } 9947 }, 9948 setupParams: function (a, b, c) { 9949 var d = {}, 9950 e = [], 9951 f = [], 9952 g = [], 9953 h = !c, 9954 i = void 0 9955 h && (c = []), 9956 (d.name = this.quotedString(a)), 9957 (d.hash = this.popStack()), 9958 this.trackIds && (d.hashIds = this.popStack()), 9959 this.stringParams && 9960 ((d.hashTypes = this.popStack()), (d.hashContexts = this.popStack())) 9961 var j = this.popStack(), 9962 k = this.popStack() 9963 ;(k || j) && ((d.fn = k || "container.noop"), (d.inverse = j || "container.noop")) 9964 for (var l = b; l--; ) 9965 (i = this.popStack()), 9966 (c[l] = i), 9967 this.trackIds && (g[l] = this.popStack()), 9968 this.stringParams && ((f[l] = this.popStack()), (e[l] = this.popStack())) 9969 return ( 9970 h && (d.args = this.source.generateArray(c)), 9971 this.trackIds && (d.ids = this.source.generateArray(g)), 9972 this.stringParams && 9973 ((d.types = this.source.generateArray(f)), 9974 (d.contexts = this.source.generateArray(e))), 9975 this.options.data && (d.data = "data"), 9976 this.useBlockParams && (d.blockParams = "blockParams"), 9977 d 9978 ) 9979 }, 9980 setupHelperArgs: function (a, b, c, d) { 9981 var e = this.setupParams(a, b, c) 9982 return ( 9983 (e.loc = JSON.stringify(this.source.currentLocation)), 9984 (e = this.objectLiteral(e)), 9985 d 9986 ? (this.useRegister("options"), c.push("options"), ["options=", e]) 9987 : c 9988 ? (c.push(e), "") 9989 : e 9990 ) 9991 }, 9992 }), 9993 (function () { 9994 for ( 9995 var a = 9996 "break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split( 9997 " ", 9998 ), 9999 b = (e.RESERVED_WORDS = {}), 10000 c = 0, 10001 d = a.length; 10002 c < d; 10003 c++ 10004 ) 10005 b[a[c]] = !0 10006 })(), 10007 (e.isValidJavaScriptVariableName = function (a) { 10008 return !e.RESERVED_WORDS[a] && /^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(a) 10009 }), 10010 (b["default"] = e), 10011 (a.exports = b["default"]) 10012 }, 10013 function (a, b, c) { 10014 "use strict" 10015 function d(a, b, c) { 10016 if (g.isArray(a)) { 10017 for (var d = [], e = 0, f = a.length; e < f; e++) d.push(b.wrap(a[e], c)) 10018 return d 10019 } 10020 return "boolean" == typeof a || "number" == typeof a ? a + "" : a 10021 } 10022 function e(a) { 10023 ;(this.srcFile = a), (this.source = []) 10024 } 10025 var f = c(60)["default"] 10026 b.__esModule = !0 10027 var g = c(5), 10028 h = void 0 10029 try { 10030 } catch (i) {} 10031 h || 10032 ((h = function (a, b, c, d) { 10033 ;(this.src = ""), d && this.add(d) 10034 }), 10035 (h.prototype = { 10036 add: function (a) { 10037 g.isArray(a) && (a = a.join("")), (this.src += a) 10038 }, 10039 prepend: function (a) { 10040 g.isArray(a) && (a = a.join("")), (this.src = a + this.src
10040) 10041 }, 10042 toStringWithSourceMap: function () { 10043 return { code: this.toString() } 10044 }, 10045 toString: function () { 10046 return this.src 10047 }, 10048 })), 10049 (e.prototype = { 10050 isEmpty: function () { 10051 return !this.source.length 10052 }, 10053 prepend: function (a, b) { 10054 this.source.unshift(this.wrap(a, b)) 10055 }, 10056 push: function (a, b) { 10057 this.source.push(this.wrap(a, b)) 10058 }, 10059 merge: function () { 10060 var a = this.empty() 10061 return ( 10062 this.each(function (b) { 10063 a.add([" ", b, "\n"]) 10064 }), 10065 a 10066 ) 10067 }, 10068 each: function (a) { 10069 for (var b = 0, c = this.source.length; b < c; b++) a(this.source[b]) 10070 }, 10071 empty: function () { 10072 var a = this.currentLocation || { start: {} } 10073 return new h(a.start.line, a.start.column, this.srcFile) 10074 }, 10075 wrap: function (a) { 10076 var b = 10077 arguments.length <= 1 || void 0 === arguments[1] 10078 ? this.currentLocation || { start: {} } 10079 : arguments[1] 10080 return a instanceof h 10081 ? a 10082 : ((a = d(a, this, b)), new h(b.start.line, b.start.column, this.srcFile, a)) 10083 }, 10084 functionCall: function (a, b, c) { 10085 return (c = this.generateList(c)), this.wrap([a, b ? "." + b + "(" : "(", c, ")"]) 10086 }, 10087 quotedString: function (a) { 10088 return ( 10089 '"' + 10090 (a + "") 10091 .replace(/\\/g, "\\\\") 10092 .replace(/"/g, '\\"') 10093 .replace(/\n/g, "\\n") 10094 .replace(/\r/g, "\\r") 10095 .replace(/\u2028/g, "\\u2028") 10096 .replace(/\u2029/g, "\\u2029") + 10097 '"' 10098 ) 10099 }, 10100 objectLiteral: function (a) { 10101 var b = this, 10102 c = [] 10103 f(a).forEach(function (e) { 10104 var f = d(a[e], b) 10105 "undefined" !== f && c.push([b.quotedString(e), ":", f]) 10106 }) 10107 var e = this.generateList(c)
10108 return e.prepend("{"), e.add("}"), e 10109 }, 10110 generateList: function (a) { 10111 for (var b = this.empty(), c = 0, e = a.length; c < e; c++) 10112 c && b.add(","), b.add(d(a[c], this)) 10113 return b 10114 }, 10115 generateArray: function (a) { 10116 var b = this.generateList(a) 10117 return b.prepend("["), b.add("]"), b 10118 }, 10119 }), 10120 (b["default"] = e), 10121 (a.exports = b["default"]) 10122 }, 10123 ]) 10124}) 10125 10126;Handlebars.registerHelper("ifeq",function(v1,v2,options){if(v1==v2){return options.fn(this)} 10127return options.inverse(this)}) 10128Handlebars.registerHelper("ifselected",function(v1,hash,options){for(const set of hash){if(set.value===v1){return options.fn(this)}} 10129return options.inverse(this)}) 10130Handlebars.registerHelper("getLabel",function(options,fields,fieldName,_options){return fields[fieldName+"_text"]}) 10131Handlebars.registerHelper("getPostTitle",function(fields,fieldName,_options){return typeof fields[fieldName]==="object"&&fields[fieldName]&&fields[fieldName].post_title?fields[fieldName].post_title:""}) 10132Handlebars.registerHelper("getStatusText",function(options,region,status,_options){return typeof options!=="undefined"&&typeof region[status]!=="undefined"&&typeof options.findById(region[status])!=="undefined"?options.findById(region[status]).label:"..."}) 10133Handlebars.registerHelper("round",function(x,options){return Math.round(x)}) 10134Handlebars.registerHelper("ifinr",function(v1,v2,options){for(const i in v2){if(v2[i].id==v1)return options.fn(this)} 10135return options.inverse(this)}) 10136Handlebars.registerHelper("ifselected",function(v1,v2,options){for(const i in v2){if(v2[i].value==v1)return options.fn(this)} 10137return options.inverse(this)}) 10138Handlebars.registerHelper("ifin",function(v1,v2,options){if(v2.indexOf(v1)!=-1){return options.fn(this)} 10139return options.inverse(this)}) 10140Handlebars.registerHelper("ifnoteq",function(v1,v2,options){if(v1!=v2){return options.fn(this)} 10141return options.inverse(this)}) 10142Handlebars.registerHelper("ifjson",function(v1,v2,options){if(typeof v1[v2]=="object"){return options.fn(this)} 10143return options.inverse(this)}) 10144Handlebars.registerHelper("ifnotjson",function(v1,v2,options){if(typeof v1[v2]!="object"){return options.fn(this)} 10145return options.inverse(this)}) 10146Handlebars.registerHelper("getRegions",function(v1,v2,options){const regions=v1[v2] 10147let str="" 10148if(regions&®ions.length){str+='<label class="badge bg-secondary">'+ 10149(regions[0].title?regions[0].title:regions[0].id)+"</label> " 10150if(regions.length>1) 10151str+='<span class="mapsvg-data-image-counter">+'+(regions.length-1)+"</span>" 10152return new Handlebars.SafeString(str)}}) 10153Handlebars.registerHelper("getSelectedOptions",function(v1,v2,options){const regions=v1[v2] 10154let str="" 10155if(regions&®ions.length){const label=regions[0].label===undefined?regions[0].value:regions[0].label 10156str+='<label class="badge bg-secondary">'+label+"</label> " 10157if(regions.length>1) 10158str+='<span class="mapsvg-data-image-counter">+'+(regions.length-1)+"</span>" 10159return new Handlebars.SafeString(str)}}) 10160Handlebars.registerHelper("getRegionIDs",function(v1,v2,options){const regions=v1[v2] 10161let str="" 10162if(regions&®ions.length){regions.forEach(function(region){str+='<label class="badge bg-secondary">'+ 10163(region.title?region.title:region.id)+"</label> "}) 10164if(regions.length>1) 10165str+='<span class="mapsvg-data-image-counter">+'+(regions.length-1)+"</span>" 10166return new Handlebars.SafeString(str)}}) 10167Handlebars.registerHelper("getThumbs",function(v1,v2,options){const images=v1[v2] 10168let str="" 10169if(images&&images.length){str+='<img src="'+images[0].thumbnail+'" class="mapsvg-data-thumbnail"/>' 10170if(images.length>1) 10171str+='<span class="mapsvg-data-image-counter">+'+(images.length-1)+"</span>" 10172return new Handlebars.SafeString(str)}}) 10173Handlebars.registerHelper("getMarkerImage",function(v1,v2,options){const location=v1[v2] 10174if(!location||!location.markerImagePath){return""} 10175return new Handlebars.SafeString('<img src="'+ 10176location.markerImagePath+'" class="mapsvg-marker-image"/> '+ 10177(location.address&&location.address.formatted?location.address.formatted:""),)}) 10178Handlebars.registerHelper("not",function(v1,v2,options){if(v1!=v2){return options.fn(this)} 10179return options.inverse(this)}) 10180Handlebars.registerHelper("if_starts",function(v1,v2,options){if(v1&&v1.indexOf(v2)==0){return options.fn(this)} 10181return options.inverse(this)}) 10182Handlebars.registerHelper("if_function",function(v1,options){return typeof v1=="function"?options.fn(this):options.inverse(this)}) 10183Handlebars.registerHelper("if_number",function(v1,options){return jQuery.isNumeric(v1)?options.fn(this):options.inverse(this)}) 10184Handlebars.registerHelper("if_string",function(v1,options){return typeof v1=="string"&&!jQuery.isNumeric(v1)?options.fn(this):options.inverse(this)}) 10185Handlebars.registerHelper("toString",function(object){return object
10185!=undefined?MapSVG.convertToText(object):""}) 10186Handlebars.registerHelper("jsonToString",function(object){return object!=undefined?JSON.stringify(object):""}) 10187Handlebars.registerHelper("log",function(object){console.log(object)}) 10188function getDistanceFromLatLonInKm(lat1,lon1,lat2,lon2){const R=6371 10189const dLat=deg2rad(lat2-lat1) 10190const dLon=deg2rad(lon2-lon1) 10191const a=Math.sin(dLat/2)*Math.sin(dLat/2)+ 10192Math.cos(deg2rad(lat1))*Math.cos(deg2rad(lat2))*Math.sin(dLon/2)*Math.sin(dLon/2) 10193const c=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)) 10194const d=R*c 10195return d} 10196function deg2rad(deg){return deg*(Math.PI/180)} 10197Handlebars.registerHelper("distanceFrom",function(location){if(window.mapsvg.distanceSearch){let distance=getDistanceFromLatLonInKm(location.geoPoint.lat,location.geoPoint.lng,window.mapsvg.distanceSearch.geoPoint.lat,window.mapsvg.distanceSearch.geoPoint.lng,) 10198if(window.mapsvg.distanceSearch.units==="mi"){distance=distance*0.62137} 10199return distance.toFixed(2)+" "+window.mapsvg.distanceSearch.units}else{return""}}) 10200Handlebars.registerHelper("distanceTo",function(location){if(window.mapsvg.distanceSearch){let distance=getDistanceFromLatLonInKm(location.geoPoint.lat,location.geoPoint.lng,window.mapsvg.distanceSearch.geoPoint.lat,window.mapsvg.distanceSearch.geoPoint.lng,) 10201if(window.mapsvg.distanceSearch.units==="mi"){distance=distance*0.62137} 10202return distance.toFixed(2)+" "+window.mapsvg.distanceSearch.units}else{return""}}) 10203Handlebars.registerHelper("stripUnderscores",function(object){return object!=undefined?object.replace(/_/g," "):""}) 10204Handlebars.registerHelper("spacesToUnderscores",function(object){return object!=undefined?object.replace(/ /g,"_"):""}) 10205Handlebars.registerHelper("switch",function(value,options){this._switch_value_=value 10206this._switch_break_=false 10207const html=options.fn(this) 10208delete this._switch_break_ 10209delete this._switch_value_ 10210return html}) 10211Handlebars.registerHelper("case",function(){const args=Array.from(arguments) 10212const options=args.pop() 10213const caseValues=args 10214if(this._switch_break_||(!this._open_break_&&caseValues.indexOf(this._switch_value_)===-1)){return""}else{if(options.hash.break==="true"||options.hash.break===true){this._switch_break_=true}else{this._open_break_=true} 10215return options.fn(this)}}) 10216Handlebars.registerHelper("default",function(options){if(!this._switch_break_){return options.fn(this)}}) 10217Handlebars.registerHelper("numberFormat",function(value,options){const dl=options.hash["decimalLength"]||2 10218const ts=options.hash["thousandsSep"]||" " 10219const ds=options.hash["decimalSep"]||"." 10220const valueFormatted=parseFloat(value) 10221const re="\\d(?=(\\d{3})+"+(dl>0?"\\D":"$")+")" 10222const num=valueFormatted.toFixed(Math.max(0,~~dl)) 10223return(ds?num.replace(".",ds):num).replace(new RegExp(re,"g"),"$&"+ts)}) 10224Handlebars.registerHelper("shortcode",function(...args){const options=args.pop() 10225const shortcodeTemplate=args[0] 10226const values=args.slice(1) 10227let shortcode=shortcodeTemplate 10228const getNestedValue=(obj,path)=>{return path.split(".").reduce((current,key)=>{return current&¤t[key]!==undefined?current[key]:undefined},obj)} 10229const matches=shortcode.match(/{{([^}]+)}}/g)||[] 10230if(values.length>0){matches.forEach((match,i)=>{const placeholder=match 10231const value=values[i]!==undefined?values[i]:"" 10232shortcode=shortcode.replace(new RegExp(placeholder,"g"),value)})}else{matches.forEach((match)=>{const path=match.slice(2,-2) 10233const value=getNestedValue(this,path) 10234if(value!==undefined){shortcode=shortcode.replace(new RegExp(match,"g"),value)}})} 10235const url=mapsvg.routes.home+"/_mapsvg/shortcode/"+encodeURI(shortcode) 10236return new Handlebars.SafeString('<iframe width="100%" class="mapsvg-iframe-shortcode" src="'+url+'"></iframe>',)}) 10237Handlebars.registerHelper("shortcode_inline",function(...args){const options=args.pop() 10238const shortcodeTemplate=args[0] 10239const values=args.slice(1) 10240let shortcode=shortcodeTemplate 10241const getNestedValue=(obj,path)=>{return path.split(".").reduce((current,key)=>{return current&¤t[key]!==undefined?current[key]:undefined},obj)} 10242const matches=shortcode.match(/{{([^}]+)}}/g)||[] 10243if(values.length>
102430){matches.forEach((match,i)=>{const placeholder=match 10244const value=values[i]!==undefined?values[i]:"" 10245shortcode=shortcode.replace(new RegExp(placeholder,"g"),value)})}else{matches.forEach((match)=>{const path=match.slice(2,-2) 10246const value=getNestedValue(this,path) 10247if(value!==undefined){shortcode=shortcode.replace(new RegExp(match,"g"),value)}})} 10248if(typeof mapsvg.meta.shortcodeCounter==="undefined"){mapsvg.meta.shortcodeCounter=0} 10249const id="mapsvg-inline-shortcode-"+ ++mapsvg.meta.shortcodeCounter 10250const shortcodeBlock='<span class="mapsvg-inline-shortcode" id="'+id+'"></span>' 10251const url=mapsvg.routes.home+"/mapsvg_sc" 10252jQuery.get(mapsvg.routes.api+"shortcodes/"+shortcode,function(data){jQuery("#"+id).replaceWith(data)}).done(()=>{}).fail(()=>{console.log(`Shortcode ${shortcode} return error`)}).always(()=>{}) 10253return new Handlebars.SafeString(shortcodeBlock)}) 10254Handlebars.registerHelper("post",function(value){if(this.post){return new Handlebars.SafeString('<iframe width="100%" class="mapsvg-iframe-post" src="/_mapsvg/post/'+ 10255encodeURI(this.post.id)+'"></iframe>',)}else{return""}}) 10256Handlebars.registerHelper("premiumFeatureAlert",function(text,object){let additionalText 10257if(text&&typeof text==="object"&&text.name==="premiumFeatureAlert"){additionalText=undefined}else{additionalText=text} 10258var additionalTextDom=additionalText?`: <span class="mapsvg-premium-feature-text">${additionalText}</span>`:"" 10259return new Handlebars.SafeString(`<div class="alert alert-info mapsvg-premium-feature"> 10260 <i class="bi bi-star-fill"></i> Premium feature${additionalTextDom} 10261 <a class="btn btn-xs mx-1 btn-outline-primary" target="_blank" href="https://mapsvg.com/pricing??utm_source=mapsvg-lite&utm_medium=lite-upgrade&utm_content=mapsvg&utm_campaign=mapsvg-lite">Upgrade</a> 10262 </div>`,)}) 10263Handlebars.registerHelper("math",function(lvalue,operator,rvalue){lvalue=parseFloat(lvalue) 10264rvalue=parseFloat(rvalue) 10265return{"+":lvalue+rvalue,"-":lvalue-rvalue,"*":lvalue*rvalue,"/":lvalue/rvalue,"%":lvalue%rvalue,}[operator]}) 10266Handlebars.registerHelper("for",function(from,to,incr,block){let accum="" 10267for(let i=from;i<to;i+=incr)accum+=block.fn(i) 10268return accum}) 10269function toSnakeCase(str){return typeof str==="string"?str.replace(/\s+/g,"_"):str} 10270Handlebars.registerHelper("toSnakeCase",function(str){return toSnakeCase(str)})
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.