123456 |
- var __awaiter=this&&this.__awaiter||function(r,t,e,n){function i(r){return r instanceof e?r:new e((function(t){t(r)}))}return new(e||(e=Promise))((function(e,o){function u(r){try{l(n.next(r))}catch(r){o(r)}}function a(r){try{l(n["throw"](r))}catch(r){o(r)}}function l(r){r.done?e(r.value):i(r.value).then(u,a)}l((n=n.apply(r,t||[])).next())}))};var __generator=this&&this.__generator||function(r,t){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(r){return function(t){return l([r,t])}}function l(u){if(n)throw new TypeError("Generator is already executing.");while(e)try{if(n=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;i=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){e.label=u[1];break}if(u[0]===6&&e.label<o[1]){e.label=o[1];o=u;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(u);break}if(o[2])e.ops.pop();e.trys.pop();continue}u=t.call(r,e)}catch(r){u=[6,r];i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,t,e){if(e||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return r.concat(o||Array.prototype.slice.call(t))};
- /*!
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
- * v1.0.0-beta.82
- */System.register(["./p-d04eb041.system.js"],(function(r){"use strict";var t;return{setters:[function(r){t=r.g}],execute:function(){r({a:f,b:c,c:m,d:s,e:a,f:g,g:_,h:h,i:p,j:T,k:k,n:l,q:y,s:q,t:x});var e="calcite-theme-auto";var n="calcite-theme-dark";var i="calcite-theme-light";var o=r("C",{autoTheme:e,darkTheme:n,lightTheme:i,rtl:"calcite--rtl"});var u=r("T",{loading:"Loading"});function a(r){if(!r){return""}return r.id=r.id||"".concat(r.tagName.toLowerCase(),"-").concat(t())}function l(r){return Array.isArray(r)?r:Array.from(r)}function c(r){var t=m(r,".".concat(o.darkTheme,", .").concat(o.lightTheme));return(t===null||t===void 0?void 0:t.classList.contains("calcite-theme-dark"))?"dark":"light"}function f(r){var t="dir";var e="[".concat(t,"]");var n=m(r,e);return n?n.getAttribute(t):"ltr"}function s(r,t,e){var n="[".concat(t,"]");var i=r.closest(n);return i?i.getAttribute(t):e}function d(r){return r.getRootNode()}function v(r){return r.host||null}function h(r,t){function e(r,n){if(!r){return n}if(r.assignedSlot){r=r.assignedSlot}var i=d(r);var o=Array.from(i.querySelectorAll(t));var u=o.filter((function(r){return!n.includes(r)}));n=__spreadArray(__spreadArray([],n,true),u,true);var a=v(i);return a?e(a,n):n}return e(r,[])}function y(r,t){var e=t.selector,n=t.id;function i(r){if(!r){return null}if(r.assignedSlot){r=r.assignedSlot}var t=d(r);var o=n?"getElementById"in t?t.getElementById(n):null:e?t.querySelector(e):null;var u=v(t);return o?o:u?i(u):null}return i(r)}function m(r,t){function e(r){return r?r.closest(t)||e(v(d(r))):null}return e(r)}function p(r){return typeof(r===null||r===void 0?void 0:r.setFocus)==="function"}function g(r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!r){return[2]}return[2,p(r)?r.setFocus():r.focus()]}))}))}var A=":not([slot])";function _(r,t,e){if(t&&!Array.isArray(t)&&typeof t!=="string"){e=t;t=null}var n=t?Array.isArray(t)?t.map((function(r){return'[slot="'.concat(r,'"]')})).join(","):'[slot="'.concat(t,'"]'):A;if(e===null||e===void 0?void 0:e.all){return w(r,n,e)}return S(r,n,e)}function b(r,t){return r?Array.from(r.children||[]).filter((function(r){return r===null||r===void 0?void 0:r.matches(t)})):[]}function w(r,t,e){var n=t===A?b(r,A):Array.from(r.querySelectorAll(t));n=e&&e.direct===false?n:n.filter((function(t){return t.parentElement===r}));n=(e===null||e===void 0?void 0:e.matches)?n.filter((function(r){return r===null||r===void 0?void 0:r.matches(e.matches)})):n;var i=e===null||e===void 0?void 0:e.selector;return i?n.map((function(r){return Array.from(r.querySelectorAll(i))})).reduce((function(r,t){return __spreadArray(__spreadArray([],r,true),t,true)}),[]).filter((function(r){return!!r})):n}function S(r,t,e){var n=t===A?b(r,A)[0]||null:r.querySelector(t);n=e&&e.direct===false?n:(n===null||n===void 0?void 0:n.parentElement)===r?n:null;n=(e===null||e===void 0?void 0:e.matches)?(n===null||n===void 0?void 0:n.matches(e.matches))?n:null:n;var i=e===null||e===void 0?void 0:e.selector;return i?n===null||n===void 0?void 0:n.querySelector(i):n}function k(r,t){return Array.from(r.children).filter((function(r){return r.matches(t)}))}function q(r,t,e){if(typeof t==="string"&&t!==""){return t}else if(t===""){return r[e]}}function T(r,t){return!(t.left>r.right||t.right<r.left||t.top>r.bottom||t.bottom<r.top)}function x(r){return(!!r).toString()}}}}));
|