mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Inline beacon fonts to avoid binary artifacts
This commit is contained in:
1 parent
13d202e1af
commit
7d1c77e4ba
13 files changed
+2849
-46
No files matched your search
+4
-31
@@ -1,4 +1,5 @@
|
||||
/* global WebTorrent, angular, moment */
|
||||
import { applyBeaconDynamicStyles } from "./ui/styleHelpers.js";
|
||||
|
||||
const VERSION = "1.1";
|
||||
|
||||
@@ -12,34 +13,6 @@ const trackers = [
|
||||
const torrentOpts = { announce: trackers };
|
||||
const trackerOpts = { announce: trackers };
|
||||
|
||||
const applyDynamicStylesPromise = import("../js/ui/styleSystem.js")
|
||||
.then((module) => module.applyDynamicStyles)
|
||||
.catch((error) => {
|
||||
console.warn("Failed to load style system utilities", error);
|
||||
return null;
|
||||
});
|
||||
|
||||
const dynamicStyleFallbackClasses = {
|
||||
hiddenDownload: "torrent-download-anchor",
|
||||
clipboard: "torrent-clipboard-textarea",
|
||||
};
|
||||
|
||||
function applyElementStyles(element, styleObject, slotKey) {
|
||||
if (!element) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (slotKey && dynamicStyleFallbackClasses[slotKey]) {
|
||||
element.classList.add(dynamicStyleFallbackClasses[slotKey]);
|
||||
}
|
||||
|
||||
applyDynamicStylesPromise.then((applyStyles) => {
|
||||
if (typeof applyStyles === "function") {
|
||||
applyStyles(element, styleObject, { slot: slotKey });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Simple debug logger.
|
||||
function dbg(msg) {
|
||||
console.log("[DEBUG]", msg);
|
||||
@@ -221,7 +194,7 @@ app.controller("BTorrentCtrl", [
|
||||
// Create an anchor to trigger the download.
|
||||
const blobUrl = URL.createObjectURL(blob);
|
||||
const a = document.createElement("a");
|
||||
applyElementStyles(a, { display: "none" }, "hiddenDownload");
|
||||
applyBeaconDynamicStyles(a, { display: "none" }, "hiddenDownload");
|
||||
a.href = blobUrl;
|
||||
a.download = file.name;
|
||||
// Append, click, remove, revoke.
|
||||
@@ -253,7 +226,7 @@ app.controller("BTorrentCtrl", [
|
||||
try {
|
||||
const textarea = document.createElement("textarea");
|
||||
textarea.value = magnetURI;
|
||||
applyElementStyles(
|
||||
applyBeaconDynamicStyles(
|
||||
textarea,
|
||||
{
|
||||
position: "fixed",
|
||||
@@ -285,7 +258,7 @@ app.controller("BTorrentCtrl", [
|
||||
const fileName = torrent.fileName || `${torrent.name}.torrent`;
|
||||
// Create a hidden <a> to force download of the .torrent file.
|
||||
const a = document.createElement("a");
|
||||
applyElementStyles(a, { display: "none" }, "hiddenDownload");
|
||||
applyBeaconDynamicStyles(a, { display: "none" }, "hiddenDownload");
|
||||
a.href = torrent.torrentFileBlobURL;
|
||||
a.download = fileName;
|
||||
document.body.appendChild(a);
|
||||
|
||||
+3
-2
@@ -18,11 +18,12 @@
|
||||
|
||||
<!-- Scripts: webtorrent, angular, etc. -->
|
||||
<script src="../js/tracking.js" defer></script>
|
||||
<script src="bundle.min.js"></script>
|
||||
<script defer src="dist/beacon.vendor.js"></script>
|
||||
<!--<script src="https://cdn.jsdelivr.net/combine/npm/webtorrent/webtorrent.min.js,npm/moment@2,npm/[email protected]/angular.min.js,npm/angular-[email protected]/angular-route.min.js,npm/angular-[email protected]/angular-sanitize.min.js,npm/angular-ui-grid@3/ui-grid.min.js,gh/matowens/ng-notify/dist/ng-notify.min.js,npm/ng-file-[email protected]/dist/ng-file-upload.min.js"></script>-->
|
||||
|
||||
<!-- Local styles -->
|
||||
<link rel="stylesheet" href="../css/tailwind.generated.css" />
|
||||
<link rel="stylesheet" href="dist/beacon.vendor.css" />
|
||||
</head>
|
||||
|
||||
<body class="bg-surface font-sans text-text" ng-controller="BTorrentCtrl" ng-cloak="">
|
||||
@@ -106,6 +107,6 @@
|
||||
</div>
|
||||
|
||||
<!-- Local Angular code -->
|
||||
<script src="app.js"></script>
|
||||
<script type="module" src="app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Vendored
-4
@@ -1,4 +0,0 @@
|
||||
e?"one":"other"}})}]),F(y.document).ready(function(){se(y.document,Gc)}))})(window);
|
||||
},d}])}(),function(){function a(a){var b=a;return"undefined"!=typeof b.length&&b.length&&(b=a[0]),b.ownerDocument.defaultView.getComputedStyle(b,null)}function b(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0,h=["Top","Right","Bottom","Left"];4>f;f+=2){var i=h[f];if("margin"===c){var j=parseFloat(e[c+i]);isNaN(j)||(g+=j)}if(d){if("content"===c){var k=parseFloat(e["padding"+i]);isNaN(k)||(g-=k)}if("margin"!==c){var l=parseFloat(e["border"+i+"Width"]);isNaN(l)||(g-=l)}}else{var m=parseFloat(e["padding"+i]);if(isNaN(m)||(g+=m),"padding"!==c){var n=parseFloat(e["border"+i+"Width"]);isNaN(n)||(g+=n)}}}return g}function c(c,d,e){var f,h=!0,i=a(c),j="border-box"===i.boxSizing;if(0>=f||null==f){if(f=i[d],(0>f||null==f)&&(f=c.style[d]),g.test(f))return f;h=j&&!0,f=parseFloat(f)||0}var k=f+b(c,d,e||(j?"border":"content"),h,i);return k}function d(b){b=angular.element(b)[0];var c=b.parentElement;return c||(c=document.getElementsByTagName("body")[0]),parseInt(a(c).fontSize)||parseInt(a(b).fontSize)||16}var e,f=angular.module("ui.grid");"function"!=typeof Function.prototype.bind&&(e=function(){var a=Array.prototype.slice;return function(b){var c=this,d=a.call(arguments,1);return d.length?function(){return arguments.length?c.apply(b,d.concat(a.call(arguments))):c.apply(b,d)}:function(){return arguments.length?c.apply(b,arguments):c.call(b)}}});var g=new RegExp("^("+/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source+")(?!px)[a-z%]+$","i"),h=/^(block|none|table(?!-c[ea]).+)/,i={position:"absolute",visibility:"hidden",display:"block"},j=["0","0","0","0"],k="uiGrid-";f.service("gridUtil",["$log","$window","$document","$http","$templateCache","$timeout","$interval","$injector","$q","$interpolate","uiGridConstants",function(f,g,l,m,n,o,p,q,r,s,t){function u(a,b){var c=angular.element(this),d=0,e=0,f=0,g=0;if(b.originalEvent&&(b=b.originalEvent),"detail"in b&&(f=-1*b.detail),"wheelDelta"in b&&(f=b.wheelDelta),"wheelDeltaY"in b&&(f=b.wheelDeltaY),"wheelDeltaX"in b&&(e=-1*b.wheelDeltaX),"axis"in b&&b.axis===b.HORIZONTAL_AXIS&&(e=-1*f,f=0),d=0===f?e:f,"deltaY"in b&&(f=-1*b.deltaY,d=f),"deltaX"in b&&(e=b.deltaX,0===f&&(d=-1*e)),0!==f||0!==e){if(1===b.deltaMode){var h=c.data("mousewheel-line-height");d*=h,f*=h,e*=h}else if(2===b.deltaMode){var i=c.data("mousewheel-page-height");d*=i,f*=i,e*=i}g=Math.max(Math.abs(f),Math.abs(e)),(!z||z>g)&&(z=g,w(b,g)&&(z/=40)),d=Math[d>=1?"floor":"ceil"](d/z),e=Math[e>=1?"floor":"ceil"](e/z),f=Math[f>=1?"floor":"ceil"](f/z);var j={originalEvent:b,deltaX:e,deltaY:f,deltaFactor:z,preventDefault:function(){b.preventDefault()},stopPropagation:function(){b.stopPropagation()}};y&&clearTimeout(y),y=setTimeout(v,200),a.call(c[0],j)}}function v(){z=null}function w(a,b){return"mousewheel"===a.type&&b%120===0}var x={augmentWidthOrHeight:b,getStyles:a,createBoundedWrapper:function(a,b){return function(){return b.apply(a,arguments)}},readableColumnName:function(a){return"undefined"==typeof a||void 0===a||null===a?a:("string"!=typeof a&&(a=String(a)),a.replace(/_+/g," ").replace(/^[A-Z]+$/,function(a){return angular.lowercase(angular.uppercase(a.charAt(0))+a.slice(1))}).replace(/([\w\u00C0-\u017F]+)/g,function(a){return angular.uppercase(a.charAt(0))+a.slice(1)}).replace(/(\w+?(?=[A-Z]))/g,"$1 "))},getColumnsFromData:function(a,b){var c=[];if(!a||"undefined"==typeof a[0]||void 0===a[0])return[];angular.isUndefined(b)&&(b=[]);var d=a[0];return angular.forEach(d,function(a,d){-1===b.indexOf(d)&&c.push({name:d})}),c},newId:function(){var a=(new Date).getTime();return function(){return a+=1}}(),getTemplate:function(a){if(n.get(a))return x.postProcessTemplate(n.get(a));if(angular.isFunction(a.then))return a.then(x.postProcessTemplate);try{if(angular.element(a).length>0)return r.when(a).then(x.postProcessTemplate)}catch(b){}return x.logDebug("fetching url",a),m({method:"GET",url:a}).then(function(b){var c=b.data.trim();return n.put(a,c),c},function(b){throw new Error("Could not get template "+a+": "+b)}).then(x.postProcessTemplate)},postProcessTemplate:function(a){var b=s.startSymbol(),c=s.endSymbol();return("{{"!==b||"}}"!==c)&&(a=a.replace(/\{\{/g,b),a=a.replace(/\}\}/g,c)),r.when(a)},guessType:function(a){var b=typeof a;switch(b){case"number":case"boolean":case"string":return b;default:return angular.isDate(a)?"date":"object"}},elementWidth:function(a){},elementHeight:function(a){},getScrollbarWidth:function(){var a=document.createElement("div");a.style.visibility="hidden",a.style.width="100px",a.style.msOverflowStyle="scrollbar",document.body.appendChild(a);var b=a.offsetWidth;a.style.overflow="scroll";var c=document.createElement("div");c.style.width="100%",a.appendChild(c);var d=c.offsetWidth;return a.parentNode.removeChild(a),b-d},swap:function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},fakeElement:function(a,b,c,d){var e,f,g=angular.element(a).clone()[0];for(f in b)g.style[f]=b[f];return angular.element(document.body)Line truncated
|
||||
},a}])}]),a.service("uiGridSelectionService",["$q","$templateCache","uiGridSelectionConstants","gridUtil",function(a,b,c,d){var e={initializeGrid:function(a){a.selection={},a.selection.lastSelectedRow=null,a.selection.selectAll=!1,a.selection.selectedCount=0,e.defaultGridOptions(a.options);var b={events:{selection:{rowSelectionChanged:function(a,b,c){},rowSelectionChangedBatch:function(a,b,c){}}},methods:{selection:{toggleRowSelection:function(b,c){var d=a.getRow(b);null!==d&&e.toggleRowSelection(a,d,c,a.options.multiSelect,a.options.noUnselect)},selectRow:function(b,c){var d=a.getRow(b);null===d||d.isSelected||e.toggleRowSelection(a,d,c,a.options.multiSelect,a.options.noUnselect)},selectRowByVisibleIndex:function(b,c){var d=a.renderContainers.body.visibleRowCache[b];null===d||"undefined"==typeof d||d.isSelected||e.toggleRowSelection(a,d,c,a.options.multiSelect,a.options.noUnselect)},unSelectRow:function(b,c){var d=a.getRow(b);null!==d&&d.isSelected&&e.toggleRowSelection(a,d,c,a.options.multiSelect,a.options.noUnselect)},selectAllRows:function(b){if(a.options.multiSelect!==!1){var c=[];a.rows.forEach(function(d){d.isSelected||d.enableSelection===!1||(d.setSelected(!0),e.decideRaiseSelectionEvent(a,d,c,b))}),e.decideRaiseSelectionBatchEvent(a,c,b),a.selection.selectAll=!0}},selectAllVisibleRows:function(b){if(a.options.multiSelect!==!1){var c=[];a.rows.forEach(function(d){d.visible?d.isSelected||d.enableSelection===!1||(d.setSelected(!0),e.decideRaiseSelectionEvent(a,d,c,b)):d.isSelected&&(d.setSelected(!1),e.decideRaiseSelectionEvent(a,d,c,b))}),e.decideRaiseSelectionBatchEvent(a,c,b),a.selection.selectAll=!0}},clearSelectedRows:function(b){e.clearSelectedRows(a,b)},getSelectedRows:function(){return e.getSelectedRows(a).map(function(a){return a.entity})},getSelectedGridRows:function(){return e.getSelectedRows(a)},getSelectedCount:function(){return a.selection.selectedCount},setMultiSelect:function(b){a.options.multiSelect=b},setModifierKeysToMultiSelect:function(b){a.options.modifierKeysToMultiSelect=b},getSelectAllState:function(){return a.selection.selectAll}}}};a.api.registerEventsFromObject(b.events),a.api.registerMethodsFromObject(b.methods)},defaultGridOptions:function(a){a.enableRowSelection=a.enableRowSelection!==!1,a.multiSelect=a.multiSelect!==!1,a.noUnselect=a.noUnselect===!0,a.modifierKeysToMultiSelect=a.modifierKeysToMultiSelect===!0,a.enableRowHeaderSelection=a.enableRowHeaderSelection!==!1,"undefined"==typeof a.enableFullRowSelection&&(a.enableFullRowSelection=!a.enableRowHeaderSelection),a.enableSelectAll=a.enableSelectAll!==!1,a.enableSelectionBatchEvent=a.enableSelectionBatchEvent!==!1,a.selectionRowHeaderWidth=angular.isDefined(a.selectionRowHeaderWidth)?a.selectionRowHeaderWidth:30,a.enableFooterTotalSelected=a.enableFooterTotalSelected!==!1,a.isRowSelectable=angular.isDefined(a.isRowSelectable)?a.isRowSelectable:angular.noop},toggleRowSelection:function(a,b,c,d,f){var g=b.isSelected;if(b.enableSelection!==!1||g){var h;d||g?!d&&g&&(h=e.getSelectedRows(a),h.length>1&&(g=!1,e.clearSelectedRows(a,c))):e.clearSelectedRows(a,c),g&&f||(b.setSelected(!g),b.isSelected===!0&&(a.selection.lastSelectedRow=b),h=e.getSelectedRows(a),a.selection.selectAll=a.rows.length===h.length,a.api.selection.raise.rowSelectionChanged(b,c))}},shiftSelect:function(a,b,c,d){if(d){var f=e.getSelectedRows(a),g=f.length>0?a.renderContainers.body.visibleRowCache.indexOf(a.selection.lastSelectedRow):0,h=a.renderContainers.body.visibleRowCache.indexOf(b);if(g>h){var i=g;g=h,h=i}for(var j=[],k=g;h>=k;k++){var l=a.renderContainers.body.visibleRowCache[k];l&&(l.isSelected||l.enableSelection===!1||(l.setSelected(!0),a.selection.lastSelectedRow=l,e.decideRaiseSelectionEvent(a,l,j,c)))}e.decideRaiseSelectionBatchEvent(a,j,c)}},getSelectedRows:function(a){return a.rows.filter(function(a){return a.isSelected})},clearSelectedRows:function(a,b){var c=[];e.getSelectedRows(a).forEach(function(d){d.isSelected&&(d.setSelected(!1),e.decideRaiseSelectionEvent(a,d,c,b))}),e.decideRaiseSelectionBatchEvent(a,c,b),a.selection.selectAll=!1,a.selection.selectedCount=0},decideRaiseSelectionEvent:function(a,b,c,d){a.options.enableSelectionBatchEvent?c.push(b):a.api.selection.raise.rowSelectionChanged(b,d)},decideRaiseSelectionBatchEvent:function(a,b,c){b.length>0&&a.api.selection.raise.rowSelectionChangedBatch(b,c)}};return e}]),a.directive("uiGridSelection",["uiGridSelectionConstants","uiGridSelectionService","$templateCache","uiGridConstants",function(a,b,c,d){return{replace:!0,priority:0,require:"^uiGrid",scope:!1,compile:function(){return{pre:function(c,e,f,g){if(b.initializeGrid(g.grid),g.grid.options.enableRowHeaderSelection){var h={name:a.selectionRowHeaderColName,displayName:"",width:g.grid.options.selectionRowHeaderWidth,minWidth:10,cellTemplate:"ui-grid/selectionRowHeader",headerCellTemplate:"ui-grid/selectionHeaderCell",enableColumnResizing:!1,enableColumnMenu:!1,exporterSuppressExport:!0,allowCellFocus:!0};g.grid.addRowHeaderColumn(hLine truncated
|
||||
a.put("ui-grid/uiGridCell",'<div class="ui-grid-cell-contents" title="TOOLTIP">{{COL_FIELD CUSTOM_FILTERS}}</div>'),a.put("ui-grid/uiGridColumnMenu",'<div class="ui-grid-column-menu"><div ui-grid-menu menu-items="menuItems"><!-- <div class="ui-grid-column-menu">\n <div class="inner" ng-show="menuShown">\n <ul>\n <div ng-show="grid.options.enableSorting">\n <li ng-click="sortColumn($event, asc)" ng-class="{ \'selected\' : col.sort.direction == asc }"><i class="ui-grid-icon-sort-alt-up"></i> Sort Ascending</li>\n <li ng-click="sortColumn($event, desc)" ng-class="{ \'selected\' : col.sort.direction == desc }"><i class="ui-grid-icon-sort-alt-down"></i> Sort Descending</li>\n <li ng-show="col.sort.direction" ng-click="unsortColumn()"><i class="ui-grid-icon-cancel"></i> Remove Sort</li>\n </div>\n </ul>\n </div>\n </div> --></div></div>'),a.put("ui-grid/uiGridFooterCell",'<div class="ui-grid-cell-contents" col-index="renderIndex"><div>{{ col.getAggregationText() + ( col.getAggregationValue() CUSTOM_FILTERS ) }}</div></div>'),a.put("ui-grid/uiGridHeaderCell",'<div role="columnheader" ng-class="{ \'sortable\': sortable }" ui-grid-one-bind-aria-labelledby-grid="col.uid + \'-header-text \' + col.uid + \'-sortdir-text\'" aria-sort="{{col.sort.direction == asc ? \'ascending\' : ( col.sort.direction == desc ? \'descending\' : (!col.sort.direction ? \'none\' : \'other\'))}}"><div role="button" tabindex="0" class="ui-grid-cell-contents ui-grid-header-cell-primary-focus" col-index="renderIndex" title="TOOLTIP"><span class="ui-grid-header-cell-label" ui-grid-one-bind-id-grid="col.uid + \'-header-text\'">{{ col.displayName CUSTOM_FILTERS }}</span> <span ui-grid-one-bind-id-grid="col.uid + \'-sortdir-text\'" ui-grid-visible="col.sort.direction" aria-label="{{getSortDirectionAriaLabel()}}"><i ng-class="{ \'ui-grid-icon-up-dir\': col.sort.direction == asc, \'ui-grid-icon-down-dir\': col.sort.direction == desc, \'ui-grid-icon-blank\': !col.sort.direction }" title="{{isSortPriorityVisible() ? i18n.headerCell.priority + \' \' + ( col.sort.priority + 1 ) : null}}" aria-hidden="true"></i> <sub ui-grid-visible="isSortPriorityVisible()" class="ui-grid-sort-priority-number">{{col.sort.priority + 1}}</sub></span></div><div role="button" tabindex="0" ui-grid-one-bind-id-grid="col.uid + \'-menu-button\'" class="ui-grid-column-menu-button" ng-if="grid.options.enableColumnMenus && !col.isRowHeader && col.colDef.enableColumnMenu !== false" ng-click="toggleMenu($event)" ng-class="{\'ui-grid-column-menu-button-last-col\': isLastCol}" ui-grid-one-bind-aria-label="i18n.headerCell.aria.columnMenuButtonLabel" aria-haspopup="true"><i class="ui-grid-icon-angle-down" aria-hidden="true"> </i></div><div ui-grid-filter></div></div>'),a.put("ui-grid/uiGridMenu",'<div class="ui-grid-menu" ng-if="shown"><style ui-grid-style>{{dynamicStyles}}</style><div class="ui-grid-menu-mid" ng-show="shownMid"><div class="ui-grid-menu-inner"><ul role="menu" class="ui-grid-menu-items"><li ng-repeat="item in menuItems" role="menuitem" ui-grid-menu-item ui-grid-one-bind-id="\'menuitem-\'+$index" action="item.action" name="item.title" active="item.active" icon="item.icon" shown="item.shown" context="item.context" template-url="item.templateUrl" leave-open="item.leaveOpen" screen-reader-only="item.screenReaderOnly"></li></ul></div></div></div>'),a.put("ui-grid/uiGridMenuItem",'<button type="button" class="ui-grid-menu-item" ng-click="itemAction($event, title)" ng-show="itemShown()" ng-class="{ \'ui-grid-menu-item-active\': active(), \'ui-grid-sr-only\': (!focus && screenReaderOnly) }" aria-pressed="{{active()}}" tabindex="0" ng-focus="focus=true" ng-blur="focus=false"><i ng-class="icon" aria-hidden="true"> </i> {{ name }}</button>'),a.put("ui-grid/uiGridRenderContainer","<div role=\"grid\" ui-grid-one-bind-id-grid=\"'grid-container'\" class=\"ui-grid-render-container\" ng-style=\"{ 'margin-left': colContainer.getMargin('left') + 'px', 'margin-right': colContainer.getMargin('right') + 'px' }\"><!-- All of these dom elements are replaced in place --><div ui-grid-header></div><div ui-grid-viewport></div><div ng-if=\"colContainer.needsHScrollbarPlaceholder()\" class=\"ui-grid-scrollbar-placeholder\" ng-style=\"{height:colContainer.grid.scrollbarHeight + 'px'}\"></div><ui-grid-footer ng-if=\"grid.options.showColumnFooter\"></ui-grid-footer></div>"),a.put("ui-grid/uiGridViewport",'<div role="rowgroup" class="ui-grid-viewport" ng-style="colContainer.getViewportStyle()"><!-- tbody --><div class="ui-grid-canvas"><div ng-repeat="(rowRenderIndex, row) in rowContainer.renderedRows track by $index" class="ui-grid-row" ng-style="Viewport.rowStyle(rowRenderIndex)"><div role="row" ui-grid-row="row" row-render-index="rowRenderIndex"></div></div></div></div>'),a.put("ui-grid/cellEditor",'<div><form name="inputForm"><input type="INPUT_TYPE" ng-class="\'colt\' + col.uid" ui-grid-editor ng-model="MODEL_COL_FIELD"></form></divLine truncated
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
@font-face{font-family:ui-grid;src:url(data:application/vnd.ms-fontobject;base64,UCgAAKwnAAABAAIAAAAAAAIABQMAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAg6LAIgAAAAAAAAAAAAAAAAAAAAAAAA4AdQBpAC0AZwByAGkAZAAAAA4AUgBlAGcAdQBsAGEAcgAAABYAVgBlAHIAcwBpAG8AbgAgADEALgAwAAAADgB1AGkALQBnAHIAaQBkAAAAAAAAAQAAAA8AgAADAHBHU1VCIIwleQAAAPwAAABUT1MvMhlwSxMAAAFQAAAAVmNtYXCXxZgGAAABqAAAArRjdnQgBtX/BAAAG5QAAAAgZnBnbYqRkFkAABu0AAALcGdhc3AAAAAQAAAbjAAAAAhnbHlmEagYowAABFwAABIuaGVhZAvafo0AABaMAAAANmhoZWEHNwNkAAAWxAAAACRobXR4S1T/8gAAFugAAABgbG9jYS61KWIAABdIAAAAMm1heHABdAyBAAAXfAAAACBuYW1lnKAPXgAAF5wAAALBcG9zdEefNeEAABpgAAABLHByZXDlQSu8AAAnJAAAAIYAAQAAAAoAMAA+AAJsYXRuAA5ERkxUABoABAAAAAAAAAABAAAABAAAAAAAAAABAAAAAWxpZ2EACAAAAAEAAAABAAQABAAAAAEACAABAAYAAAABAAAAAQMjAZAABQAAAnoCvAAAAIwCegK8AAAB4AAxAQIAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABAw1DqYQNS/2oAWgNSAJYAAAABAAAAAAAAAAAABQAAAAMAAAAsAAAABAAAAZAAAQAAAAAAigADAAEAAAAsAAMACgAAAZAABABeAAAACAAIAAIAAMNj6AHqYf//AADDUOgA6mH//wAAAAAAAAABAAgALgAwAAAAAQACAAMABAAFAAYABwAIAAkACgALAAwADQAOAA8AEAARABIAEwAUABUAFgAXAAABBgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAEkAAAAAAAAABcAAMNQAADDUAAAAAEAAMNRAADDUQAAAAIAAMNSAADDUgAAAAMAAMNTAADDUwAAAAQAAMNUAADDVAAAAAUAAMNVAADDVQAAAAYAAMNWAADDVgAAAAcAAMNXAADDVwAAAAgAAMNYAADDWAAAAAkAAMNZAADDWQAAAAoAAMNaAADDWgAAAAsAAMNbAADDWwAAAAwAAMNcAADDXAAAAA0AAMNdAADDXQAAAA4AAMNeAADDXgAAAA8AAMNfAADDXwAAABAAAMNgAADDYAAAABEAAMNhAADDYQAAABIAAMNiAADDYgAAABMAAMNjAADDYwAAABQAAOgAAADoAAAAABUAAOgBAADoAQAAABYAAOphAADqYQAAABcAAgAA/7EDWQMLACMAMwBBQD4NAQABHwEEAwJHAgEAAQMBAANtBQEDBAEDBGsABwABAAcBYAAEBgYEVAAEBAZYAAYEBkw1NSMzFiMkIwgFHCsBNTQmByM1NCYnIyIGBxUjIgYHFRQWNzMVFBY7ATI2NzUzMjYTERQGByEiJjURNDY3ITIWAsoUD7MWDkcPFAGyDxQBFg6yFg5HDxQBsw4Wjl5D/elDXl5DAhdDXgE6SA4WAbMPFAEWDrMUD0gOFgGzDhYWDrMUAT/96EJeAWBBAhhCXgFgAAAAAgAA/7EDWQMLAA8AHwAdQBoAAwADbwAAAQBvAAECAW8AAgJmNTUmMwQFGCsBNTQmByEiBgcVFBY3ITI2ExEUBgchIiY1ETQ2NyEyFgLKFA/+DA8UARYOAfQOFo5eQ/3pQ15eQwIXQ14BOkgOFgEUD0gOFgEUAT/96EJeAWBBAhhCXgFgAAAAAAL///9qA6EDDQAIACEAK0AoHwEBAA4BAwECRwAEAAABBABgAAEAAwIBA2AAAgINAkkXIxQTEgUFGSsBNC4BBhQWPgEBFAYiLwEGIyIuAj4EHgIXFAcXFgKDktCSktCSAR4sOhS/ZHtQkmhAAjxsjqSObDwBRb8VAYJnkgKWypgGjP6aHSoVv0U+apCijm46BEJmlk17ZL8VAAAAAAEAAP/vAtQChgAkAB5AGyIZEAcEAAIBRwMBAgACbwEBAABmFBwUFAQFGCslFA8BBiIvAQcGIi8BJjQ/AScmND8BNjIfATc2Mh8BFhQPARcWAtQPTBAsEKSkECwQTBAQpKQQEEwQLBCkpBAsEEwPD6SkD3AWEEwPD6WlDw9MECwQpKQQLBBMEBCkpBAQTA8uD6SkDwAD//3/sQNfAwsAHgAuADsASUBGKCACBgUOBgICARgBAgQAA0cACAAFBggFYAAGAAECBgFgAAIDAQAEAgBgAAQHBwRUAAQEB1gABwQHTBUWJiYmESYjIwkFHSslNTQmKwERNCYrASIGHQEUFjsBFSMiBh0BFBY7ATI2AzU0JisBIgYdARQWOwEyNgUUDgEiLgI+ATIeAQI7Cgc2CgiyCAoKCDU1CAoKCPoHCkcKCGsICgoIawgKAWVyxujIbgZ6vPS6flJZCAoBHggKCghZCAqzCghZCAoKAfxZCAoKCFkICgrgdcR0dMTqxHR0xAAAAAACAAD/+QKDAwsABwAfACpAJwUDAgABAgEAAm0AAgJuAAQBAQRUAAQEAVgAAQQBTCMTJTYTEAYFGisTITU0Jg4BFwURFAYHISImJxE0NhczNTQ2MhYHFTMyFrMBHVR2VAEB0CAW/ekXHgEgFhGUzJYCEhceAaVsO1QCUD2h/r4WHgEgFQFCFiABbGaUlGZsHgABAAD/+QOhAwwAJQAwQC0EAQIBAAECAG0AAAMBAANrAAMDbgAFAQEFVAAFBQFYAAEFAUwTJTUjFSQGBRorARUUBgcjIiY9ATQmDgEHFTMyFhcRFAYHISImJxE0NhchNTQ+ARYDoRYOJA4WUnhSATUXHgEgFv3pFx4BIBYBd5LQkAIRjw8UARYOjztUAlA9bB4X/r4WHgEgFQFCFiABbGeSApYAAAQAAP+xA00C/wAGABQAGQAkAIZAFx4BAgUdFg4HBAMCGQMCAwADAQEBAARHS7ASUFhAJwAFAgVvAAIDAm8AAwADbwAAAQEAYwYBAQQEAVIGAQEBBFcABAEESxtAJgAFAgVvAAIDAm8AAwADbwAAAQBvBgEBBAQBUgYBAQEEVwAEAQRLWUASAAAhIBgXEA8JCAAGAAYUBwUVKxc3JwcVMxUBNCMiBwEGFRQzMjcBNicXASM1ARQPASc3NjIfARbLMoMzSAFfDAUE/tEEDQUEAS8DHuj+MOgDTRRd6F0UOxaDFAczgzM8RwIGDAT+0gQGDAQBLgRx6P4v6QGaHRVd6VwVFYMWAAAAAAEAAAAAAjwB7QAOABdAFAABAAEBRwABAAFvAAAAZjUUAgUWKwEUDwEGIi8BJjQ2MyEyFgI7CvoLHAv6CxYOAfQOFgHJDgv6Cwv6CxwWFgAAAf//AAACOwHJAA4AEUAOAAEAAW8AAABmFTICBRYrJRQGJyEiLgE/ATYyHwEWAjsUD/4MDxQCDPoKHgr6CqsOFgEUHgv6Cgr6CwAAAAEAAAAAAWcCfAANABdAFAABAAEBRwABAAFvAAAAZhcTAgUWKwERFAYiLwEmND8BNjIWAWUUIAn6Cgr6CxwYAlj+DA4WC/oLHAv6CxYAAAAAAQAAAAABQQJ9AA4ACrcAAABmFAEFFSsBFA8BBiImNRE0PgEfARYBQQr6CxwWFhwL+goBXg4L+gsWDgH0DxQCDPoKAAABAAD/wAKYA0QAFAAttQEBAAEBR0uwJFBYQAsAAAEAcAABAQwBSRtACQABAAFvAAAAZlm0FxcCBRYrCQIWFA8BBiInASY0NwE2Mh8BFhQCjv7XASkKCl0LHAv+YgsLAZ4KHgpdCgKq/tj+1woeCl0KCgGfCh4KAZ4LC10KHgAAAAEAAP/AAnQDRAAUAC21CQEAAQFHS7AkUFhACwAAAQBwAAEBDAFJG0AJAAEAAW8AAABmWbQcEgIFFisJAQYiLwEmNDcJASY0PwE2MhcBFhQCav5iCxwLXQsLASj+2AsLXQoeCgGeCgFp/mEKCl0LHAsBKQEoCxwLXQsL/mILHAAAAQAAAAACWAHmABUAGUAWDwEAAQFHAgEBAAFvAAAAZhQXFAMFFysBFAcBBiInASY0PwE2Mh8BNzYyHwEWAlgG/vwFEAT+/AYGHAUOBtvcBRAEHAYBtwcF/vsFBQEFBQ4GHAYG29sGBhwFAAAAAf/5/7EDGALDABQAGEAVDgMCAAEBRwABAAFvAAAAZjgnAgUWKwEWBwERFAcGIyIvASY1EQEmNjMhMgMPCRH+7RYHBw8Kjwr+7RITGALKFwKtFhH+7f5iFwoDC48LDgEPARMRLAAAAAAFAAD/agPoA1IAFwAnADcARwBXAFxAWVFJDAMKAkE5AggJMSkCBgchGQIABQRHAwEBBgUGAQVtAAkACAcJCF4ABwAGAQcGYAAKCgJYCwECAgxIAAUFAFgEAQAADQBJVVNNS0VDFyYmJiYUIyQUDAUdKyUUDwEGIi8BJjY7ARE0NjsBMhYVETMyFgUVFAYjISImPQE0NjMhMhYDFRQGIyEiJj0BNDYzITLine truncated
|
||||
/*! Bundled license information:
|
||||
|
||||
angular-ui-grid/ui-grid.min.css:
|
||||
(*!
|
||||
* ui-grid - v4.12.7 - 2024-04-12
|
||||
* http://ui-grid.info/
|
||||
* Copyright (c) 2024 ; License: MIT
|
||||
*)
|
||||
*/
|
||||
Vendored
+138
@@ -0,0 +1,138 @@
|
||||
(()=>{var gd=Object.create;var zu=Object.defineProperty;var md=Object.getOwnPropertyDescriptor;var vd=Object.getOwnPropertyNames;var bd=Object.getPrototypeOf,yd=Object.prototype.hasOwnProperty;var Bi=(we=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(we,{get:(Q,A)=>(typeof require!="undefined"?require:Q)[A]}):we)(function(we){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+we+'" is not supported')});var wi=(we,Q)=>()=>(Q||we((Q={exports:{}}).exports,Q),Q.exports);var wd=(we,Q,A,O)=>{if(Q&&typeof Q=="object"||typeof Q=="function")for(let I of vd(Q))!yd.call(we,I)&&I!==A&&zu(we,I,{get:()=>Q[I],enumerable:!(O=md(Q,I))||O.enumerable});return we};var ta=(we,Q,A)=>(A=we!=null?gd(bd(we)):{},wd(Q||!we||!we.__esModule?zu(A,"default",{value:we,enumerable:!0}):A,we));var ju=wi(()=>{(function(we){"use strict";var Q={objectMaxDepth:5,urlErrorParamsEnabled:!0};function A(r){if(q(r))L(r.objectMaxDepth)&&(Q.objectMaxDepth=O(r.objectMaxDepth)?r.objectMaxDepth:NaN),L(r.urlErrorParamsEnabled)&&le(r.urlErrorParamsEnabled)&&(Q.urlErrorParamsEnabled=r.urlErrorParamsEnabled);else return Q}function O(r){return fe(r)&&r>0}function I(r,y){y=y||Error;var P="https://errors.angularjs.org/1.8.3/",H=P.replace(".","\\.")+"[\\s\\S]*",X=new RegExp(H,"g");return function(){var ce=arguments[0],ie=arguments[1],ne="["+(r?r+":":"")+ce+"] ",re=de(arguments,2).map(function(xe){return qe(xe,Q.objectMaxDepth)}),me,be;if(ne+=ie.replace(/\{\d+\}/g,function(xe){var ke=+xe.slice(1,-1);return ke<re.length?re[ke].replace(X,""):xe}),ne+=`
|
||||
`+P+(r?r+"/":"")+ce,Q.urlErrorParamsEnabled)for(be=0,me="?";be<re.length;be++,me="&")ne+=me+"p"+be+"="+encodeURIComponent(re[be]);return new y(ne)}}var D=/^\/(.+)\/([a-z]*)$/,T="validity",_=Object.prototype.hasOwnProperty,E=function(r){return ae(r)?r.toLowerCase():r},d=function(r){return ae(r)?r.toUpperCase():r},M,g,F,N=[].slice,J=[].splice,pe=[].push,m=Object.prototype.toString,U=Object.getPrototypeOf,k=I("ng"),p=we.angular||(we.angular={}),w,v=0;M=we.document.documentMode;function h(r){if(r==null||x(r))return!1;if(se(r)||ae(r)||g&&r instanceof g)return!0;var y="length"in Object(r)&&r.length;return fe(y)&&(y>=0&&y-1 in r||typeof r.item=="function")}function e(r,y,P){var H,X;if(r)if(K(r))for(H in r)H!=="prototype"&&H!=="length"&&H!=="name"&&r.hasOwnProperty(H)&&y.call(P,r[H],H,r);else if(se(r)||h(r)){var ce=typeof r!="object";for(H=0,X=r.length;H<X;H++)(ce||H in r)&&y.call(P,r[H],H,r)}else if(r.forEach&&r.forEach!==e)r.forEach(y,P,r);else if(ee(r))for(H in r)y.call(P,r[H],H,r);else if(typeof r.hasOwnProperty=="function")for(H in r)r.hasOwnProperty(H)&&y.call(P,r[H],H,r);else for(H in r)_.call(r,H)&&y.call(P,r[H],H,r);return r}function o(r,y,P){for(var H=Object.keys(r).sort(),X=0;X<H.length;X++)y.call(P,r[H[X]],H[X]);return H}function i(r){return function(y,P){r(P,y)}}function u(){return++v}function c(r,y){y?r.$$hashKey=y:delete r.$$hashKey}function s(r,y,P){for(var H=r.$$hashKey,X=0,ce=y.length;X<ce;++X){var ie=y[X];if(!(!q(ie)&&!K(ie)))for(var ne=Object.keys(ie),re=0,me=ne.length;re<me;re++){var be=ne[re],xe=ie[be];P&&q(xe)?Ee(xe)?r[be]=new Date(xe.valueOf()):j(xe)?r[be]=new RegExp(xe):xe.nodeName?r[be]=xe.cloneNode(!0):rt(xe)?r[be]=xe.clone():be!=="__proto__"&&(q(r[be])||(r[be]=se(xe)?[]:{}),s(r[be],[xe],!0)):r[be]=xe}}return c(r,H),r}function t(r){return s(r,N.call(arguments,1),!1)}function n(r){return s(r,N.call(arguments,1),!0)}function a(r){return parseInt(r,10)}var l=Number.isNaN||function(y){return y!==y};function f(r,y){return t(Object.create(r),y)}function b(){}b.$inject=[];function C(r){return r}C.$inject=[];function $(r){return function(){return r}}function W(r){return K(r.toString)&&r.toString!==m}function R(r){return typeof r=="undefined"}function L(r){return typeof r!="undefined"}function q(r){return r!==null&&typeof r=="object"}function ee(r){return r!==null&&typeof r=="object"&&!U(r)}function ae(r){return typeof r=="string"}function fe(r){return typeof r=="number"}function Ee(r){return m.call(r)==="[object Date]"}function se(r){return Array.isArray(r)||r instanceof Array}function B(r){var y=m.call(r);switch(y){case"[object Error]":return!0;case"[object Exception]":return!0;case"[object DOMException]":return!0;default:return r instanceof Error}}function K(r){return typeof r=="function"}function j(r){return m.call(r)==="[object RegExp]"}function x(r){return r&&r.window===r}function z(r){return r&&r.$evalAsync&&r.$watch}function Z(r){return m.call(r)==="[object File]"}function oe(r){return m.call(r)==="[object FormData]"}function Y(r){return m.call(r)==="[object Blob]"}function le(r){return typeof r=="boolean"}function ge(r){return r&&K(r.then)}var Re=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;function Ae(r){return r&&fe(r.length)&&Re.test(m.call(r))}function De(r){return m.call(r)==="[object ArrayBuffer]"}var $e=function(r){return ae(r)?r.trim():r},Ye=function(r){return r.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function rt(r){return!!(r&&(r.nodeName||r.prop&&r.attr&&r.find))}function bt(r){var y={},P=r.split(","),H;for(H=0;H<P.length;H++)y[P[H]]=!0;return y}function ut(r){return E(r.nodeName||r[0]&&r[0].nodeName)}function Me(r,y){return Array.prototype.indexOf.call(r,y)!==-1}function Ge(r,y){var P=r.indexOf(y);return P>=0&&r.splice(P,1),P}function Ze(r,y,P){var H=[],X=[];if(P=O(P)?P:NaN,y){if(Ae(y)||De(y))throw k("cpta","Can't copy! TypedArray destination cannot be mutated.");if(r===y)throw k("cpi","Can't copy! Source and destination are identical.");return se(y)?y.length=0:e(y,function(re,me){me!=="$$hashKey"&&delete y[me]}),H.push(r),X.push(y),ce(r,y,P)}return ie(r,P);function ce(re,me,be){if(be--,be<0)return"...";var xe=me.$$hashKey,ke;if(se(re))for(var Fe=0,Oe=re.length;Fe<Oe;Fe++)me.push(ie(re[Fe],be));else if(ee(re))for(ke in re)me[ke]=ie(re[ke],be);else if(re&&typeof re.hasOwnProperty=="function")for(ke in re)re.hasOwnProperty(ke)&&(me[ke]=ie(re[ke],be));else for(ke in re)_.call(re,ke)&&(me[ke]=ie(re[ke],be));return c(me,xe),me}function ie(re,me){if(!q(re))return re;var be=H.indexOf(re);if(be!==-1)return X[be];if(x(re)||z(re))throw k("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var xe=!1,ke=ne(re);return ke===void 0&&(ke=se(re)?[]:Object.create(U(re)),xe=!0),H.push(re),X.push(ke),xe?ce(re,ke,me):ke}function ne(re){switch(m.call(re)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[o
Line truncated
|
||||
`+tt.stack),Bn("modulerr",`Failed to instantiate module {0} due to:
|
||||
{1}`,Ne,tt.stack||tt.message||tt)}}),Le}function ze(Xe,Le){function Ie(nt,gt){if(Xe.hasOwnProperty(nt)){if(Xe[nt]===P)throw Bn("cdep","Circular dependency found: {0}",nt+" <- "+X.join(" <- "));return Xe[nt]}else try{return X.unshift(nt),Xe[nt]=P,Xe[nt]=Le(nt,gt),Xe[nt]}catch(Et){throw Xe[nt]===P&&delete Xe[nt],Et}finally{X.shift()}}function Ne(nt,gt,Et){for(var Rt=[],_t=fi.$$annotate(nt,y,Et),Pt=0,Zt=_t.length;Pt<Zt;Pt++){var Gt=_t[Pt];if(typeof Gt!="string")throw Bn("itkn","Incorrect injection token! Expected service name as string, got {0}",Gt);Rt.push(gt&>.hasOwnProperty(Gt)?gt[Gt]:Ie(Gt,Et))}return Rt}function Be(nt){if(M||typeof nt!="function")return!1;var gt=nt.$$ngIsClass;return le(gt)||(gt=nt.$$ngIsClass=/^class\b/.test(Ji(nt))),gt}function tt(nt,gt,Et,Rt){typeof Et=="string"&&(Rt=Et,Et=null);var _t=Ne(nt,Et,Rt);return se(nt)&&(nt=nt[nt.length-1]),Be(nt)?(_t.unshift(null),new(Function.prototype.bind.apply(nt,_t))):nt.apply(gt,_t)}function dt(nt,gt,Et){var Rt=se(nt)?nt[nt.length-1]:nt,_t=Ne(nt,gt,Et);return _t.unshift(null),new(Function.prototype.bind.apply(Rt,_t))}return{invoke:tt,instantiate:dt,get:Ie,annotate:fi.$$annotate,has:function(nt){return ie.hasOwnProperty(nt+H)||Xe.hasOwnProperty(nt)}}}}fi.$$annotate=ys;function ws(){var r=!0;this.disableAutoScrolling=function(){r=!1},this.$get=["$window","$location","$rootScope",function(y,P,H){var X=y.document;function ce(me){var be=null;return Array.prototype.some.call(me,function(xe){if(ut(xe)==="a")return be=xe,!0}),be}function ie(){var me=re.yOffset;if(K(me))me=me();else if(rt(me)){var be=me[0],xe=y.getComputedStyle(be);xe.position!=="fixed"?me=0:me=be.getBoundingClientRect().bottom}else fe(me)||(me=0);return me}function ne(me){if(me){me.scrollIntoView();var be=ie();if(be){var xe=me.getBoundingClientRect().top;y.scrollBy(0,xe-be)}}else y.scrollTo(0,0)}function re(me){me=ae(me)?me:fe(me)?me.toString():P.hash();var be;me?(be=X.getElementById(me))||(be=ce(X.getElementsByName(me)))?ne(be):me==="top"&&ne(null):ne(null)}return r&&H.$watch(function(){return P.hash()},function(be,xe){be===xe&&be===""||cs(function(){H.$evalAsync(re)})}),re}]}var ua=I("$animate"),_s=1,ca="ng-animate";function Ci(r,y){return!r&&!y?"":r?y?(se(r)&&(r=r.join(" ")),se(y)&&(y=y.join(" ")),r+" "+y):r:y}function da(r){for(var y=0;y<r.length;y++){var P=r[y];if(P.nodeType===_s)return P}}function Ss(r){ae(r)&&(r=r.split(" "));var y=Ht();return e(r,function(P){P.length&&(y[P]=!0)}),y}function Dn(r){return q(r)?r:{}}var xs=function(){this.$get=b},Ro=function(){var r=new Ki,y=[];this.$get=["$$AnimateRunner","$rootScope",function(P,H){return{enabled:b,on:b,off:b,pin:b,push:function(ne,re,me,be){be&&be(),me=me||{},me.from&&ne.css(me.from),me.to&&ne.css(me.to),(me.addClass||me.removeClass)&&ie(ne,me.addClass,me.removeClass);var xe=new P;return xe.complete(),xe}};function X(ne,re,me){var be=!1;return re&&(re=ae(re)?re.split(" "):se(re)?re:[],e(re,function(xe){xe&&(be=!0,ne[xe]=me)})),be}function ce(){e(y,function(ne){var re=r.get(ne);if(re){var me=Ss(ne.attr("class")),be="",xe="";e(re,function(ke,Fe){var Oe=!!me[Fe];ke!==Oe&&(ke?be+=(be.length?" ":"")+Fe:xe+=(xe.length?" ":"")+Fe)}),e(ne,function(ke){be&&Vi(ke,be),xe&&ji(ke,xe)}),r.delete(ne)}}),y.length=0}function ie(ne,re,me){var be=r.get(ne)||{},xe=X(be,re,!0),ke=X(be,me,!1);(xe||ke)&&(r.set(ne,be),y.push(ne),y.length===1&&H.$$postDigest(ce))}}]},Es=["$provide",function(r){var y=this,P=null,H=null;this.$$registeredAnimations=Object.create(null),this.register=function(X,ce){if(X&&X.charAt(0)!==".")throw ua("notcsel","Expecting class selector starting with '.' got '{0}'.",X);var ie=X+"-animation";y.$$registeredAnimations[X.substr(1)]=ie,r.factory(ie,ce)},this.customFilter=function(X){return arguments.length===1&&(H=K(X)?X:null),H},this.classNameFilter=function(X){if(arguments.length===1&&(P=X instanceof RegExp?X:null,P)){var ce=new RegExp("[(\\s|\\/)]"+ca+"[(\\s|\\/)]");if(ce.test(P.toString()))throw P=null,ua("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',ca)}return P},this.$get=["$$animateQueue",function(X){function ce(ie,ne,re){if(re){var me=da(re);me&&!me.parentNode&&!me.previousElementSibling&&(re=null)}re?re.after(ie):ne.prepend(ie)}return{on:X.on,off:X.off,pin:X.pin,enabled:X.enabled,cancel:function(ie){ie.cancel&&ie.cancel()},enter:function(ie,ne,re,me){return ne=ne&&g(ne),re=re&&g(re),ne=ne||re.parent(),ce(ie,ne,re),X.push(ie,"enter",Dn(me))},move:function(ie,ne,re,me){return ne=ne&&g(ne),re=re&&g(re),ne=ne||re.parent(),ce(ie,ne,re),X.push(ie,"move",Dn(me))},leave:function(ie,ne){return X.push(ie,"leave",Dn(ne),function(){ie.remove()})},addClass:function(ie,ne,re){return re=Dn(re),re.addClass=Ci(re.addclass,ne),X.push(ie,"addClass",re)},removeClass:function(ie,ne,re){return re=Dn(re),re.removeClass=Ci(re.removeClass,ne),X.push(ie,"removeClass",re)},setClass:function(ie,ne,re,me){return me=Dn(me),me.addClass=Ci(me.addClass,ne),me.removeClass=Ci(me.re
Line truncated
|
||||
`,st);tt.$apply(function(){for(var We=0,Qe=Zt.length;We<Qe;++We)try{Zt[We]()}catch(lt){Le(lt)}Zt=void 0})}finally{Pt++}}function cr(We,Qe){if(!We)return We;if(!ae(We))throw Wr("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',Qe,We.toString());for(var lt="",pt=$e(We),Ct=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,At=/\s/.test(pt)?Ct:/(,)/,$t=pt.split(At),ar=Math.floor($t.length/2),Ft=0;Ft<ar;Ft++){var Ot=Ft*2;lt+=dt.getTrustedMediaUrl($e($t[Ot])),lt+=" "+$e($t[Ot+1])}var Nt=$e($t[Ft*2]).split(/\s/);return lt+=dt.getTrustedMediaUrl($e(Nt[0])),Nt.length===2&&(lt+=" "+$e(Nt[1])),lt}function _r(We,Qe){if(Qe){var lt=Object.keys(Qe),pt,Ct,At;for(pt=0,Ct=lt.length;pt<Ct;pt++)At=lt[pt],this[At]=Qe[At]}else this.$attr={};this.$$element=We}_r.prototype={$normalize:On,$addClass:function(We){We&&We.length>0&&nt.addClass(this.$$element,We)},$removeClass:function(We){We&&We.length>0&&nt.removeClass(this.$$element,We)},$updateClass:function(We,Qe){var lt=Ai(We,Qe);lt&<.length&&nt.addClass(this.$$element,lt);var pt=Ai(Qe,We);pt&&pt.length&&nt.removeClass(this.$$element,pt)},$set:function(We,Qe,lt,pt){var Ct=this.$$element[0],At=di(Ct,We),$t=Ei(We),ar=We,Ft;At?(this.$$element.prop(We,Qe),pt=At):$t&&(this[$t]=Qe,ar=$t),this[We]=Qe,pt?this.$attr[We]=pt:(pt=this.$attr[We],pt||(this.$attr[We]=pt=ir(We,"-"))),Ft=ut(this.$$element),Ft==="img"&&We==="srcset"&&(this[We]=Qe=cr(Qe,"$set('srcset', value)")),lt!==!1&&(Qe===null||R(Qe)?this.$$element.removeAttr(pt):gt.test(pt)?At&&Qe===!1?this.$$element.removeAttr(pt):this.$$element.attr(pt,Qe):kr(this.$$element[0],pt,Qe));var Ot=this.$$observers;Ot&&e(Ot[ar],function(Nt){try{Nt(Qe)}catch(jt){Le(jt)}})},$observe:function(We,Qe){var lt=this,pt=lt.$$observers||(lt.$$observers=Ht()),Ct=pt[We]||(pt[We]=[]);return Ct.push(Qe),tt.$evalAsync(function(){!Ct.$$inter&<.hasOwnProperty(We)&&!R(lt[We])&&Qe(lt[We])}),function(){Ge(Ct,Qe)}}};function kr(We,Qe,lt){Et.innerHTML="<span "+Qe+">";var pt=Et.firstChild.attributes,Ct=pt[0];pt.removeNamedItem(Ct.name),Ct.value=lt,We.attributes.setNamedItem(Ct)}function Pr(We,Qe){try{We.addClass(Qe)}catch{}}var Gr=Xe.startSymbol(),Hr=Xe.endSymbol(),pn=Gr==="{{"&&Hr==="}}"?C:function(Qe){return Qe.replace(/\{\{/g,Gr).replace(/}}/g,Hr)},tn=/^ng(Attr|Prop|On)([A-Z].*)$/,cn=/^(.+)Start$/;return jr.$$addBindingInfo=at?function(Qe,lt){var pt=Qe.data("$binding")||[];se(lt)?pt=pt.concat(lt):pt.push(lt),Qe.data("$binding",pt)}:b,jr.$$addBindingClass=at?function(Qe){Pr(Qe,"ng-binding")}:b,jr.$$addScopeInfo=at?function(Qe,lt,pt,Ct){var At=pt?Ct?"$isolateScopeNoTemplate":"$isolateScope":"$scope";Qe.data(At,lt)}:b,jr.$$addScopeClass=at?function(Qe,lt){Pr(Qe,lt?"ng-isolate-scope":"ng-scope")}:b,jr.$$createComment=function(We,Qe){var lt="";return at&&(lt=" "+(We||"")+": ",Qe&&(lt+=Qe+" ")),we.document.createComment(lt)},jr;function jr(We,Qe,lt,pt,Ct){We instanceof g||(We=g(We));var At=Fi(We,Qe,We,lt,pt,Ct);jr.$$addScopeClass(We);var $t=null;return function(Ft,Ot,Nt){if(!We)throw Wr("multilink","This element has already been linked.");or(Ft,"scope"),Ct&&Ct.needsNewScope&&(Ft=Ft.$parent.$new()),Nt=Nt||{};var jt=Nt.parentBoundTranscludeFn,Tt=Nt.transcludeControllers,Qt=Nt.futureParentElement;jt&&jt.$$boundTransclude&&(jt=jt.$$boundTransclude),$t||($t=$i(Qt));var br;if($t!=="html"?br=g(Kl($t,g("<div></div>").append(We).html())):Ot?br=ci.clone.call(We):br=We,Tt)for(var Dr in Tt)br.data("$"+Dr+"Controller",Tt[Dr].instance);return jr.$$addScopeInfo(br,Ft),Ot&&Ot(br,Ft),At&&At(Ft,br,br,jt),Ot||(We=At=null),br}}function $i(We){var Qe=We&&We[0];return Qe&&ut(Qe)!=="foreignobject"&&m.call(Qe).match(/SVG/)?"svg":"html"}function Fi(We,Qe,lt,pt,Ct,At){for(var $t=[],ar=se(We)||We instanceof g,Ft,Ot,Nt,jt,Tt,Qt,br,Dr=0;Dr<We.length;Dr++)Ft=new _r,M===11&&Gl(We,Dr,ar),Ot=bi(We[Dr],[],Ft,Dr===0?pt:void 0,Ct),Nt=Ot.length?Iu(Ot,We[Dr],Ft,Qe,lt,null,[],[],At):null,Nt&&Nt.scope&&jr.$$addScopeClass(Ft.$$element),Tt=Nt&&Nt.terminal||!(jt=We[Dr].childNodes)||!jt.length?null:Fi(jt,Nt?(Nt.transcludeOnThisElement||!Nt.templateOnThisElement)&&Nt.transclude:Qe),(Nt||Tt)&&($t.push(Dr,Nt,Tt),Qt=!0,br=br||Nt),At=null;return Qt?Tr:null;function Tr(yr,wr,Bt,Rr){var Ar,qr,Kr,Yr,Lr,gn,nn,En,ei;if(br){var mo=wr.length;for(ei=new Array(mo),Lr=0;Lr<$t.length;Lr+=3)nn=$t[Lr],ei[nn]=wr[nn]}else ei=wr;for(Lr=0,gn=$t.length;Lr<gn;)Kr=ei[$t[Lr++]],Ar=$t[Lr++],qr=$t[Lr++],Ar?(Ar.scope?(Yr=yr.$new(),jr.$$addScopeInfo(g(Kr),Yr)):Yr=yr,Ar.transcludeOnThisElement?En=qn(yr,Ar.transclude,Rr):!Ar.templateOnThisElement&&Rr?En=Rr:!Rr&&Qe?En=qn(yr,Qe):En=null,Ar(qr,Yr,Kr,Bt,En)):qr&&qr(yr,Kr.childNodes,void 0,Rr)}}function Gl(We,Qe,lt){var pt=We[Qe],Ct=pt.parentNode,At;if(pt.nodeType===rr)for(;At=Ct?pt.nextSibling:We[Qe+1],!(!At||At.nodeType!==rr);)pt.nodeValue=pt.nodeValue+At.nodeValue,At.parentNode&&At.parentNode.removeChild(At),lt&&At===We[Qe+1]&&We.splice(Qe+1,1)}function qn(We,Qe,lt){function pt($t,ar,Ft,Ot,Nt){return $t||($t=We.$new(!1,Nt),$t.$$transcluded=!0),Qe($t,ar,{parentBoundTranscludeFn:lt,transcludeControllers:Ft
Line truncated
|
||||
`),function(X){P=X.indexOf(":"),H(E($e(X.substr(0,P))),$e(X.substr(P+1)))}):q(r)&&e(r,function(X,ce){H(E(ce),$e(X))}),y}function Ln(r){var y;return function(P){if(y||(y=ya(r)),P){var H=y[E(P)];return H===void 0&&(H=null),H}return y}}function Zn(r,y,P,H){return K(H)?H(r,y,P):(e(H,function(X){r=X(r,y,P)}),r)}function ro(r){return 200<=r&&r<300}function Bs(){var r=this.defaults={transformResponse:[to],transformRequest:[function(X){return q(X)&&!Z(X)&&!Y(X)&&!oe(X)?je(X):X}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ye(Lo),put:ye(Lo),patch:ye(Lo)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},y=!1;this.useApplyAsync=function(X){return L(X)?(y=!!X,this):y};var P=this.interceptors=[],H=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get:function(){return this.xsrfTrustedOrigins},set:function(X){this.xsrfTrustedOrigins=X}}),this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(X,ce,ie,ne,re,me,be,xe){var ke=ne("$http");r.paramSerializer=ae(r.paramSerializer)?be.get(r.paramSerializer):r.paramSerializer;var Fe=[];e(P,function(ze){Fe.unshift(ae(ze)?be.get(ze):be.invoke(ze))});var Oe=za(H);function at(ze){if(!q(ze))throw I("$http")("badreq","Http request configuration must be an object. Received: {0}",ze);if(!ae(xe.valueOf(ze.url)))throw I("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",ze.url);var Xe=t({method:"get",transformRequest:r.transformRequest,transformResponse:r.transformResponse,paramSerializer:r.paramSerializer,jsonpCallbackParam:r.jsonpCallbackParam},ze);Xe.headers=nt(ze),Xe.method=d(Xe.method),Xe.paramSerializer=ae(Xe.paramSerializer)?be.get(Xe.paramSerializer):Xe.paramSerializer,X.$$incOutstandingRequestCount("$http");var Le=[],Ie=[],Ne=me.resolve(Xe);return e(Fe,function(Rt){(Rt.request||Rt.requestError)&&Le.unshift(Rt.request,Rt.requestError),(Rt.response||Rt.responseError)&&Ie.push(Rt.response,Rt.responseError)}),Ne=Be(Ne,Le),Ne=Ne.then(gt),Ne=Be(Ne,Ie),Ne=Ne.finally(tt),Ne;function Be(Rt,_t){for(var Pt=0,Zt=_t.length;Pt<Zt;){var Gt=_t[Pt++],cr=_t[Pt++];Rt=Rt.then(Gt,cr)}return _t.length=0,Rt}function tt(){X.$$completeOutstandingRequest(b,"$http")}function dt(Rt,_t){var Pt,Zt={};return e(Rt,function(Gt,cr){K(Gt)?(Pt=Gt(_t),Pt!=null&&(Zt[cr]=Pt)):Zt[cr]=Gt}),Zt}function nt(Rt){var _t=r.headers,Pt=t({},Rt.headers),Zt,Gt,cr;_t=t({},_t.common,_t[E(Rt.method)]);e:for(Zt in _t){Gt=E(Zt);for(cr in Pt)if(E(cr)===Gt)continue e;Pt[Zt]=_t[Zt]}return dt(Pt,ye(Rt))}function gt(Rt){var _t=Rt.headers,Pt=Zn(Rt.data,Ln(_t),void 0,Rt.transformRequest);return R(Pt)&&e(_t,function(Zt,Gt){E(Gt)==="content-type"&&delete _t[Gt]}),R(Rt.withCredentials)&&!R(r.withCredentials)&&(Rt.withCredentials=r.withCredentials),ot(Rt,Pt).then(Et,Et)}function Et(Rt){var _t=t({},Rt);return _t.data=Zn(Rt.data,Rt.headers,Rt.status,Xe.transformResponse),ro(Rt.status)?_t:me.reject(_t)}}return at.pendingRequests=[],vt("get","delete","head","jsonp"),st("post","put","patch"),at.defaults=r,at;function vt(ze){e(arguments,function(Xe){at[Xe]=function(Le,Ie){return at(t({},Ie||{},{method:Xe,url:Le}))}})}function st(ze){e(arguments,function(Xe){at[Xe]=function(Le,Ie,Ne){return at(t({},Ne||{},{method:Xe,url:Le,data:Ie}))}})}function ot(ze,Xe){var Le=me.defer(),Ie=Le.promise,Ne,Be,tt=ze.headers,dt=E(ze.method)==="jsonp",nt=ze.url;if(dt?nt=xe.getTrustedResourceUrl(nt):ae(nt)||(nt=xe.valueOf(nt)),nt=it(nt,ze.paramSerializer(ze.params)),dt&&(nt=ct(nt,ze.jsonpCallbackParam)),at.pendingRequests.push(ze),Ie.then(Zt,Zt),(ze.cache||r.cache)&&ze.cache!==!1&&(ze.method==="GET"||ze.method==="JSONP")&&(Ne=q(ze.cache)?ze.cache:q(r.cache)?r.cache:ke),Ne&&(Be=Ne.get(nt),L(Be)?ge(Be)?Be.then(Pt,Pt):se(Be)?_t(Be[1],Be[0],ye(Be[2]),Be[3],Be[4]):_t(Be,200,{},"OK","complete"):Ne.put(nt,Ie)),R(Be)){var gt=Oe(ze.url)?ie()[ze.xsrfCookieName||r.xsrfCookieName]:void 0;gt&&(tt[ze.xsrfHeaderName||r.xsrfHeaderName]=gt),ce(ze.method,nt,Xe,Rt,tt,ze.timeout,ze.withCredentials,ze.responseType,Et(ze.eventHandlers),Et(ze.uploadEventHandlers))}return Ie;function Et(Gt){if(Gt){var cr={};return e(Gt,function(_r,kr){cr[kr]=function(Pr){y?re.$applyAsync(Gr):re.$$phase?Gr():re.$apply(Gr);function Gr(){_r(Pr)}}}),cr}}function Rt(Gt,cr,_r,kr,Pr){Ne&&(ro(Gt)?Ne.put(nt,[Gt,cr,ya(_r),kr,Pr]):Ne.remove(nt));function Gr(){_t(cr,Gt,_r,kr,Pr)}y?re.$applyAsync(Gr):(Gr(),re.$$phase||re.$apply())}function _t(Gt,cr,_r,kr,Pr){cr=cr>=-1?cr:0,(ro(cr)?Le.resolve:Le.reject)({data:Gt,status:cr,headers:Ln(_r),config:ze,statusText:kr,xhrStatus:Pr})}function Pt(Gt){_t(Gt.data,Gt.status,ye(Gt.headers()),Gt.statusText,Gt.xhrStatus)}function Zt(){var Gt=at.pendingRequests.indexOf(ze);Gt!==-1&&at.pendingRequests.splice(Gt,1)}}function it(ze,Xe){return Xe.length>0&&(ze+=(ze.indexOf("?")===-1?"?":"&")+Xe),ze}function ct(ze,Xe){var Le=ze.split("?");if(Le.length>2
Line truncated
|
||||
Strict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce`,r)},ni.interr=function(r,y){return ni("interr",`Can't interpolate: {0}
|
||||
{1}`,r,y.toString())};function Sa(){var r="{{",y="}}";this.startSymbol=function(P){return P?(r=P,this):r},this.endSymbol=function(P){return P?(y=P,this):y},this.$get=["$parse","$exceptionHandler","$sce",function(P,H,X){var ce=r.length,ie=y.length,ne=new RegExp(r.replace(/./g,me),"g"),re=new RegExp(y.replace(/./g,me),"g");function me(Fe){return"\\\\\\"+Fe}function be(Fe){return Fe.replace(ne,r).replace(re,y)}function xe(Fe,Oe,at,vt){var st=Fe.$watch(function(it){return st(),vt(it)},Oe,at);return st}function ke(Fe,Oe,at,vt){var st=at===X.URL||at===X.MEDIA_URL;if(!Fe.length||Fe.indexOf(r)===-1){if(Oe)return;var ot=be(Fe);st&&(ot=X.getTrusted(at,ot));var it=$(ot);return it.exp=Fe,it.expressions=[],it.$$watchDelegate=xe,it}vt=!!vt;for(var ct,ze,Xe=0,Le=[],Ie,Ne=Fe.length,Be,tt=[],dt=[],nt;Xe<Ne;)if((ct=Fe.indexOf(r,Xe))!==-1&&(ze=Fe.indexOf(y,ct+ce))!==-1)Xe!==ct&&tt.push(be(Fe.substring(Xe,ct))),Be=Fe.substring(ct+ce,ze),Le.push(Be),Xe=ze+ie,dt.push(tt.length),tt.push("");else{Xe!==Ne&&tt.push(be(Fe.substring(Xe)));break}nt=tt.length===1&&dt.length===1;var gt=st&&nt?void 0:Rt;if(Ie=Le.map(function(_t){return P(_t,gt)}),!Oe||Le.length){var Et=function(_t){for(var Pt=0,Zt=Le.length;Pt<Zt;Pt++){if(vt&&R(_t[Pt]))return;tt[dt[Pt]]=_t[Pt]}return st?X.getTrusted(at,nt?tt[0]:tt.join("")):(at&&tt.length>1&&ni.throwNoconcat(Fe),tt.join(""))};return t(function(Pt){var Zt=0,Gt=Le.length,cr=new Array(Gt);try{for(;Zt<Gt;Zt++)cr[Zt]=Ie[Zt](Pt);return Et(cr)}catch(_r){H(ni.interr(Fe,_r))}},{exp:Fe,expressions:Le,$$watchDelegate:function(_t,Pt){var Zt;return _t.$watchGroup(Ie,function(cr,_r){var kr=Et(cr);Pt.call(this,kr,cr!==_r?Zt:kr,_t),Zt=kr})}})}function Rt(_t){try{return _t=at&&!st?X.getTrusted(at,_t):X.valueOf(_t),vt&&!L(_t)?_t:fr(_t)}catch(Pt){H(ni.interr(Fe,Pt))}}}return ke.startSymbol=function(){return r},ke.endSymbol=function(){return y},ke}]}var Us=I("$interval");function zs(){this.$get=["$$intervalFactory","$window",function(r,y){var P={},H=function(ie,ne,re){var me=y.setInterval(ie,ne);return P[me]=re,me},X=function(ie){y.clearInterval(ie),delete P[ie]},ce=r(H,X);return ce.cancel=function(ie){if(!ie)return!1;if(!ie.hasOwnProperty("$$intervalId"))throw Us("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!P.hasOwnProperty(ie.$$intervalId))return!1;var ne=ie.$$intervalId,re=P[ne];return oo(re.promise),re.reject("canceled"),X(ne),!0},ce}]}function js(){this.$get=["$browser","$q","$$q","$rootScope",function(r,y,P,H){return function(ce,ie){return function(re,me,be,xe){var ke=arguments.length>4,Fe=ke?de(arguments,4):[],Oe=0,at=L(xe)&&!xe,vt=(at?P:y).defer(),st=vt.promise;be=L(be)?be:0;function ot(){ke?re.apply(null,Fe):re(Oe)}function it(){at?r.defer(ot):H.$evalAsync(ot),vt.notify(Oe++),be>0&&Oe>=be&&(vt.resolve(Oe),ie(st.$$intervalId)),at||H.$apply()}return st.$$intervalId=ce(it,me,vt,at),st}}}]}var Vs=function(){this.$get=function(){var r=p.callbacks,y={};function P(H){var X=function(ce){X.data=ce,X.called=!0};return X.id=H,X}return{createCallback:function(H){var X="_"+(r.$$counter++).toString(36),ce="angular.callbacks."+X,ie=P(X);return y[ce]=r[X]=ie,ce},wasCalled:function(H){return y[H].called},getResponse:function(H){return y[H].data},removeCallback:function(H){var X=y[H];delete r[X.id],delete y[H]}}}},Ws=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Gs={http:80,https:443,ftp:21},Ti=I("$location");function Ys(r){for(var y=r.split("/"),P=y.length;P--;)y[P]=Wt(y[P].replace(/%2F/g,"/"));return y.join("/")}function qs(r,y){for(var P=r.split("/"),H=P.length;H--;)P[H]=decodeURIComponent(P[H]),y&&(P[H]=P[H].replace(/\//g,"%2F"));return P.join("/")}function Ks(r,y,P){var H=St(y),X=P?"#"+Wt(P):"",ce=Ys(r);return ce+(H?"?"+H:"")+X}function xa(r,y){var P=xt(r);y.$$protocol=P.protocol,y.$$host=P.hostname,y.$$port=a(P.port)||Gs[P.protocol]||null}var Js=/^\s*[\\/]{2,}/;function Ea(r,y,P){if(Js.test(r))throw Ti("badpath",'Invalid url "{0}".',r);var H=r.charAt(0)!=="/";H&&(r="/"+r);var X=xt(r),ce=H&&X.pathname.charAt(0)==="/"?X.pathname.substring(1):X.pathname;y.$$path=qs(ce,P),y.$$search=mr(X.search),y.$$hash=decodeURIComponent(X.hash),y.$$path&&y.$$path.charAt(0)!=="/"&&(y.$$path="/"+y.$$path)}function $o(r,y){return r.slice(0,y.length)===y}function Mn(r,y){if($o(y,r))return y.substr(r.length)}function ii(r){var y=r.indexOf("#");return y===-1?r:r.substr(0,y)}function Xs(r){return r.substr(0,ii(r).lastIndexOf("/")+1)}function Zs(r){return r.substring(0,r.indexOf("/",r.indexOf("//")+2))}function Fo(r,y,P){this.$$html5=!0,P=P||"",xa(r,this),this.$$parse=function(H){var X=Mn(y,H);if(!ae(X))throw Ti("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',H,y);Ea(X,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(H){return y+H.substr(1)},this.$$parseLinkUrl=function(H,X){if(X&&X[0]==="#")return this.hash(X.slice(1)),!0;var ce,ie,ne;return L(ce=Mn(r,H))?(ie=ce,P&&L(ce=Mn(P,ce))?ne=y+(Mn("/",ce)||ce):ne=r+ie):L(ce=Mn(y,H))?ne=y+ce:y===H+"/"&&(ne=y),ne&&this.$$Line truncated
|
||||
`+ie.stack:ie.stack:ie.sourceURL&&(ie=ie.message+`
|
||||
`+ie.sourceURL+":"+ie.line)),ie}function ce(ie){var ne=P.console||{},re=ne[ie]||ne.log||b;return function(){var me=[];return e(arguments,function(be){me.push(X(be))}),Function.prototype.apply.call(re,ne,me)}}}]}var Yn=I("$parse"),hi={}.constructor.prototype.valueOf;function Ii(r){return r+""}var Pi=Ht();e("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(r){Pi[r]=!0});var pi={n:`
|
||||
`,f:"\f",r:"\r",t:" ",v:"\v","'":"'",'"':'"'},Di=function(y){this.options=y};Di.prototype={constructor:Di,lex:function(r){for(this.text=r,this.index=0,this.tokens=[];this.index<this.text.length;){var y=this.text.charAt(this.index);if(y==='"'||y==="'")this.readString(y);else if(this.isNumber(y)||y==="."&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(y,"(){}[].,;:?"))this.tokens.push({index:this.index,text:y}),this.index++;else if(this.isWhitespace(y))this.index++;else{var P=y+this.peek(),H=P+this.peek(2),X=Pi[y],ce=Pi[P],ie=Pi[H];if(X||ce||ie){var ne=ie?H:ce?P:y;this.tokens.push({index:this.index,text:ne,operator:!0}),this.index+=ne.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(r,y){return y.indexOf(r)!==-1},peek:function(r){var y=r||1;return this.index+y<this.text.length?this.text.charAt(this.index+y):!1},isNumber:function(r){return"0"<=r&&r<="9"&&typeof r=="string"},isWhitespace:function(r){return r===" "||r==="\r"||r===" "||r===`
|
||||
`||r==="\v"||r==="\xA0"},isIdentifierStart:function(r){return this.options.isIdentifierStart?this.options.isIdentifierStart(r,this.codePointAt(r)):this.isValidIdentifierStart(r)},isValidIdentifierStart:function(r){return"a"<=r&&r<="z"||"A"<=r&&r<="Z"||r==="_"||r==="$"},isIdentifierContinue:function(r){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(r,this.codePointAt(r)):this.isValidIdentifierContinue(r)},isValidIdentifierContinue:function(r,y){return this.isValidIdentifierStart(r,y)||this.isNumber(r)},codePointAt:function(r){return r.length===1?r.charCodeAt(0):(r.charCodeAt(0)<<10)+r.charCodeAt(1)-56613888},peekMultichar:function(){var r=this.text.charAt(this.index),y=this.peek();if(!y)return r;var P=r.charCodeAt(0),H=y.charCodeAt(0);return P>=55296&&P<=56319&&H>=56320&&H<=57343?r+y:r},isExpOperator:function(r){return r==="-"||r==="+"||this.isNumber(r)},throwError:function(r,y,P){P=P||this.index;var H=L(y)?"s "+y+"-"+this.index+" ["+this.text.substring(y,P)+"]":" "+P;throw Yn("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",r,H,this.text)},readNumber:function(){for(var r="",y=this.index;this.index<this.text.length;){var P=E(this.text.charAt(this.index));if(P==="."||this.isNumber(P))r+=P;else{var H=this.peek();if(P==="e"&&this.isExpOperator(H))r+=P;else if(this.isExpOperator(P)&&H&&this.isNumber(H)&&r.charAt(r.length-1)==="e")r+=P;else if(this.isExpOperator(P)&&(!H||!this.isNumber(H))&&r.charAt(r.length-1)==="e")this.throwError("Invalid exponent");else break}this.index++}this.tokens.push({index:y,text:r,constant:!0,value:Number(r)})},readIdent:function(){var r=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var y=this.peekMultichar();if(!this.isIdentifierContinue(y))break;this.index+=y.length}this.tokens.push({index:r,text:this.text.slice(r,this.index),identifier:!0})},readString:function(r){var y=this.index;this.index++;for(var P="",H=r,X=!1;this.index<this.text.length;){var ce=this.text.charAt(this.index);if(H+=ce,X){if(ce==="u"){var ie=this.text.substring(this.index+1,this.index+5);ie.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+ie+"]"),this.index+=4,P+=String.fromCharCode(parseInt(ie,16))}else{var ne=pi[ce];P=P+(ne||ce)}X=!1}else if(ce==="\\")X=!0;else if(ce===r){this.index++,this.tokens.push({index:y,text:H,constant:!0,value:P});return}else P+=ce;this.index++}this.throwError("Unterminated quote",y)}};var kt=function(y,P){this.lexer=y,this.options=P};kt.Program="Program",kt.ExpressionStatement="ExpressionStatement",kt.AssignmentExpression="AssignmentExpression",kt.ConditionalExpression="ConditionalExpression",kt.LogicalExpression="LogicalExpression",kt.BinaryExpression="BinaryExpression",kt.UnaryExpression="UnaryExpression",kt.CallExpression="CallExpression",kt.MemberExpression="MemberExpression",kt.Identifier="Identifier",kt.Literal="Literal",kt.ArrayExpression="ArrayExpression",kt.Property="Property",kt.ObjectExpression="ObjectExpression",kt.ThisExpression="ThisExpression",kt.LocalsExpression="LocalsExpression",kt.NGValueParameter="NGValueParameter",kt.prototype={ast:function(r){this.text=r,this.tokens=this.lexer.lex(r);var y=this.program();return this.tokens.length!==0&&this.throwError("is an unexpected token",this.tokens[0]),y},program:function(){for(var r=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&r.push(this.expressionStatement()),!this.expect(";"))return{type:kt.Program,body:r}},expressionStatement:function(){return{type:kt.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var r=this.expression();this.expect("|");)r=this.filter(r);return r},expression:function(){return this.assignment()},assignment:function(){var r=this.ternary();if(this.expect("=")){if(!Da(r))throw Yn("lval","Trying to assign a value to a non l-value");r={type:kt.AssignmentExpression,left:r,right:this.assignment(),operator:"="}}return r},ternary:function(){var r=this.logicalOR(),y,P;return this.expect("?")&&(y=this.expression(),this.consume(":"))?(P=this.expression(),{type:kt.ConditionalExpression,test:r,alternate:y,consequent:P}):r},logicalOR:function(){for(var r=this.logicalAND();this.expect("||");)r={type:kt.LogicalExpression,operator:"||",left:r,right:this.logicalAND()};return r},logicalAND:function(){for(var r=this.equality();this.expect("&&");)r={type:kt.LogicalExpression,operator:"&&",left:r,right:this.equality()};return r},equality:function(){for(var r=this.relational(),y;y=this.expect("==","!=","===","!==");)r={type:kt.BinaryExpression,operator:y.text,left:r,right:this.relational()};return r},relational:function(){for(var r=this.additive(),y;y=this.expect("<",">","<=",">=");)r={type:kt.BinaryExpression,operator:y.text,left:r,right:this.additive()};return r},additive:function(){for(var r=this.multiplicative(),y;y=this.expect("+","-");)r={type:kt.BinaryExpression,operator:y.text,left:r,right:this.multiplicative()};return r},multiplicative:function(){for(var r=this.unary(),y;y=th
Line truncated
|
||||
`+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+P+this.watchFns()+"return fn;",ne=new Function("$filter","getStringValue","ifDefined","plus",ie)(this.$filter,Ii,el,Ra);return this.state=this.stage=void 0,ne},USE:"use",STRICT:"strict",watchFns:function(){var r=[],y=this.state.inputs,P=this;return e(y,function(H){r.push("var "+H.name+"="+P.generateFunction(H.name,"s")),H.isPure&&r.push(H.name,".isPure="+JSON.stringify(H.isPure)+";")}),y.length&&r.push("fn.inputs=["+y.map(function(H){return H.name}).join(",")+"];"),r.join("")},generateFunction:function(r,y){return"function("+y+"){"+this.varsPrefix(r)+this.body(r)+"};"},filterPrefix:function(){var r=[],y=this;return e(this.state.filters,function(P,H){r.push(P+"=$filter("+y.escape(H)+")")}),r.length?"var "+r.join(",")+";":""},varsPrefix:function(r){return this.state[r].vars.length?"var "+this.state[r].vars.join(",")+";":""},body:function(r){return this.state[r].body.join("")},recurse:function(r,y,P,H,X,ce){var ie,ne,re=this,me,be,xe;if(H=H||b,!ce&&L(r.watchId)){y=y||this.nextId(),this.if_("i",this.lazyAssign(y,this.computedMember("i",r.watchId)),this.lazyRecurse(r,y,P,H,X,!0));return}switch(r.type){case kt.Program:e(r.body,function(ke,Fe){re.recurse(ke.expression,void 0,void 0,function(Oe){ne=Oe}),Fe!==r.body.length-1?re.current().body.push(ne,";"):re.return_(ne)});break;case kt.Literal:be=this.escape(r.value),this.assign(y,be),H(y||be);break;case kt.UnaryExpression:this.recurse(r.argument,void 0,void 0,function(ke){ne=ke}),be=r.operator+"("+this.ifDefined(ne,0)+")",this.assign(y,be),H(be);break;case kt.BinaryExpression:this.recurse(r.left,void 0,void 0,function(ke){ie=ke}),this.recurse(r.right,void 0,void 0,function(ke){ne=ke}),r.operator==="+"?be=this.plus(ie,ne):r.operator==="-"?be=this.ifDefined(ie,0)+r.operator+this.ifDefined(ne,0):be="("+ie+")"+r.operator+"("+ne+")",this.assign(y,be),H(be);break;case kt.LogicalExpression:y=y||this.nextId(),re.recurse(r.left,y),re.if_(r.operator==="&&"?y:re.not(y),re.lazyRecurse(r.right,y)),H(y);break;case kt.ConditionalExpression:y=y||this.nextId(),re.recurse(r.test,y),re.if_(y,re.lazyRecurse(r.alternate,y),re.lazyRecurse(r.consequent,y)),H(y);break;case kt.Identifier:y=y||this.nextId(),P&&(P.context=re.stage==="inputs"?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",r.name)+"?l:s"),P.computed=!1,P.name=r.name),re.if_(re.stage==="inputs"||re.not(re.getHasOwnProperty("l",r.name)),function(){re.if_(re.stage==="inputs"||"s",function(){X&&X!==1&&re.if_(re.isNull(re.nonComputedMember("s",r.name)),re.lazyAssign(re.nonComputedMember("s",r.name),"{}")),re.assign(y,re.nonComputedMember("s",r.name))})},y&&re.lazyAssign(y,re.nonComputedMember("l",r.name))),H(y);break;case kt.MemberExpression:ie=P&&(P.context=this.nextId())||this.nextId(),y=y||this.nextId(),re.recurse(r.object,ie,void 0,function(){re.if_(re.notNull(ie),function(){r.computed?(ne=re.nextId(),re.recurse(r.property,ne),re.getStringValue(ne),X&&X!==1&&re.if_(re.not(re.computedMember(ie,ne)),re.lazyAssign(re.computedMember(ie,ne),"{}")),be=re.computedMember(ie,ne),re.assign(y,be),P&&(P.computed=!0,P.name=ne)):(X&&X!==1&&re.if_(re.isNull(re.nonComputedMember(ie,r.property.name)),re.lazyAssign(re.nonComputedMember(ie,r.property.name),"{}")),be=re.nonComputedMember(ie,r.property.name),re.assign(y,be),P&&(P.computed=!1,P.name=r.property.name))},function(){re.assign(y,"undefined")}),H(y)},!!X);break;case kt.CallExpression:y=y||this.nextId(),r.filter?(ne=re.filter(r.callee.name),me=[],e(r.arguments,function(ke){var Fe=re.nextId();re.recurse(ke,Fe),me.push(Fe)}),be=ne+"("+me.join(",")+")",re.assign(y,be),H(y)):(ne=re.nextId(),ie={},me=[],re.recurse(r.callee,ne,ie,function(){re.if_(re.notNull(ne),function(){e(r.arguments,function(ke){re.recurse(ke,r.constant?void 0:re.nextId(),void 0,function(Fe){me.push(Fe)})}),ie.name?be=re.member(ie.context,ie.name,ie.computed)+"("+me.join(",")+")":be=ne+"("+me.join(",")+")",re.assign(y,be)},function(){re.assign(y,"undefined")}),H(y)}));break;case kt.AssignmentExpression:ne=this.nextId(),ie={},this.recurse(r.left,void 0,ie,function(){re.if_(re.notNull(ie.context),function(){re.recurse(r.right,ne),be=re.member(ie.context,ie.name,ie.computed)+r.operator+ne,re.assign(y,be),H(y||be)})},1);break;case kt.ArrayExpression:me=[],e(r.elements,function(ke){re.recurse(ke,r.constant?void 0:re.nextId(),void 0,function(Fe){me.push(Fe)})}),be="["+me.join(",")+"]",this.assign(y,be),H(y||be);break;case kt.ObjectExpression:me=[],xe=!1,e(r.properties,function(ke){ke.computed&&(xe=!0)}),xe?(y=y||this.nextId(),this.assign(y,"{}"),e(r.properties,function(ke){ke.computed?(ie=re.nextId(),re.recurse(ke.key,ie)):ie=ke.key.type===kt.Identifier?ke.key.name:""+ke.key.value,ne=re.nextId(),re.recurse(ke.value,ne),re.assign(re.member(y,ie,ke.computed),ne)})):(e(r.properties,function(ke){re.recurse(ke.value,r.constant?void 0:re.nextId(),void 0,function(Fe){me.push(re.escape(ke.key.type===kt.Identifier?ke.key.name:""+ke.key.value)+":"+Fe)})}),be="{
Line truncated
|
||||
Watchers fired in the last 5 iterations: {1}`,r,Pt)}while(nt||ke.length);for(st();at<Fe.length;)try{Fe[at++]()}catch(_r){ce(_r)}Fe.length=at=0,ne.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var Le=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===xe&&ne.$$applicationDestroyed(),ot(this,-this.$$watchersCount);for(var Ie in this.$$listenerCount)it(this,this.$$listenerCount[Ie],Ie);Le&&Le.$$childHead===this&&(Le.$$childHead=this.$$nextSibling),Le&&Le.$$childTail===this&&(Le.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=b,this.$on=this.$watch=this.$watchGroup=function(){return b},this.$$listeners={},this.$$nextSibling=null,me(this)}},$eval:function(Le,Ie){return ie(Le)(this,Ie)},$evalAsync:function(Le,Ie){!xe.$$phase&&!ke.length&&ne.defer(function(){ke.length&&xe.$digest()},null,"$evalAsync"),ke.push({scope:this,fn:ie(Le),locals:Ie})},$$postDigest:function(Le){Fe.push(Le)},$apply:function(Le){try{vt("$apply");try{return this.$eval(Le)}finally{st()}}catch(Ie){ce(Ie)}finally{try{xe.$digest()}catch(Ie){throw ce(Ie),Ie}}},$applyAsync:function(Le){var Ie=this;Le&&Oe.push(Ne),Le=ie(Le),Xe();function Ne(){Ie.$eval(Le)}},$on:function(Le,Ie){var Ne=this.$$listeners[Le];Ne||(this.$$listeners[Le]=Ne=[]),Ne.push(Ie);var Be=this;do Be.$$listenerCount[Le]||(Be.$$listenerCount[Le]=0),Be.$$listenerCount[Le]++;while(Be=Be.$parent);var tt=this;return function(){var dt=Ne.indexOf(Ie);dt!==-1&&(delete Ne[dt],it(tt,1,Le))}},$emit:function(Le,Ie){var Ne=[],Be,tt=this,dt=!1,nt={name:Le,targetScope:tt,stopPropagation:function(){dt=!0},preventDefault:function(){nt.defaultPrevented=!0},defaultPrevented:!1},gt=te([nt],arguments,1),Et,Rt;do{for(Be=tt.$$listeners[Le]||Ne,nt.currentScope=tt,Et=0,Rt=Be.length;Et<Rt;Et++){if(!Be[Et]){Be.splice(Et,1),Et--,Rt--;continue}try{Be[Et].apply(null,gt)}catch(_t){ce(_t)}}if(dt)break;tt=tt.$parent}while(tt);return nt.currentScope=null,nt},$broadcast:function(Le,Ie){var Ne=this,Be=Ne,tt=Ne,dt={name:Le,targetScope:Ne,preventDefault:function(){dt.defaultPrevented=!0},defaultPrevented:!1};if(!Ne.$$listenerCount[Le])return dt;for(var nt=te([dt],arguments,1),gt,Et,Rt;Be=tt;){for(dt.currentScope=Be,gt=Be.$$listeners[Le]||[],Et=0,Rt=gt.length;Et<Rt;Et++){if(!gt[Et]){gt.splice(Et,1),Et--,Rt--;continue}try{gt[Et].apply(null,nt)}catch(_t){ce(_t)}}if(!(tt=Be.$$listenerCount[Le]&&Be.$$childHead||Be!==Ne&&Be.$$nextSibling))for(;Be!==Ne&&!(tt=Be.$$nextSibling);)Be=Be.$parent}return dt.currentScope=null,dt}};var xe=new be,ke=xe.$$asyncQueue=[],Fe=xe.$$postDigestQueue=[],Oe=xe.$$applyAsyncQueue=[],at=0;return xe;function vt(Le){if(xe.$$phase)throw y("inprog","{0} already in progress",xe.$$phase);xe.$$phase=Le}function st(){xe.$$phase=null}function ot(Le,Ie){do Le.$$watchersCount+=Ie;while(Le=Le.$parent)}function it(Le,Ie,Ne){do Le.$$listenerCount[Ne]-=Ie,Le.$$listenerCount[Ne]===0&&delete Le.$$listenerCount[Ne];while(Le=Le.$parent)}function ct(){}function ze(){for(;Oe.length;)try{Oe.shift()()}catch(Le){ce(Le)}H=null}function Xe(){H===null&&(H=ne.defer(function(){xe.$apply(ze)},null,"$applyAsync"))}}]}function cl(){var r=/^\s*(https?|s?ftp|mailto|tel|file):/,y=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(P){return L(P)?(r=P,this):r},this.imgSrcSanitizationTrustedUrlList=function(P){return L(P)?(y=P,this):y},this.$get=function(){return function(H,X){var ce=X?y:r,ie=xt(H&&H.trim()).href;return ie!==""&&!ie.match(ce)?"unsafe:"+ie:H}}}var Hn=I("$sce"),Nr={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},dl=/_([a-z])/g;function Uo(r){return r.replace(dl,yn)}function fl(r){if(r==="self")return r;if(ae(r)){if(r.indexOf("***")>-1)throw Hn("iwcard","Illegal sequence *** in string matcher. String: {0}",r);return r=Ye(r).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+r+"$")}else{if(j(r))return new RegExp("^"+r.source+"$");throw Hn("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}}function Na(r){var y=[];return L(r)&&e(r,function(P){y.push(fl(P))}),y}function hl(){this.SCE_CONTEXTS=Nr;var r=["self"],y=[];this.trustedResourceUrlList=function(P){return arguments.length&&(r=Na(P)),r},Object.defineProperty(this,"resourceUrlWhitelist",{get:function(){return this.trustedResourceUrlList},set:function(P){this.trustedResourceUrlList=P}}),this.bannedResourceUrlList=function(P){return arguments.length&&(y=Na(P)),y},Object.defineProperty(this,"resourceUrlBlacklist",{get:function(){return this.bannedResourceUrlList},set:function(P){this.bannedResourceUrlList=P}}),this.$get=["$injector","$$sanitizeUri",function(P,H){var X=function(Oe){throw Hn(
Line truncated
|
||||
[`+Ve+"] ";for(ht in arguments[0])D(arguments[0],ht)&&(Ce+=ht+": "+arguments[0][ht]+", ");Ce=Ce.slice(0,-2)}else Ce=arguments[Ve];ve.push(Ce)}e(S+`
|
||||
Arguments: `+Array.prototype.slice.call(ve).join("")+`
|
||||
`+new Error().stack),he=!1}return V.apply(this,arguments)},V)}var i={};function u(S,V){Q.deprecationHandler!=null&&Q.deprecationHandler(S,V),i[S]||(e(V),i[S]=!0)}Q.suppressDeprecationWarnings=!1,Q.deprecationHandler=null;function c(S){return typeof Function!="undefined"&&S instanceof Function||Object.prototype.toString.call(S)==="[object Function]"}function s(S){var V,he;for(he in S)D(S,he)&&(V=S[he],c(V)?this[he]=V:this["_"+he]=V);this._config=S,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function t(S,V){var he=g({},S),ve;for(ve in V)D(V,ve)&&(I(S[ve])&&I(V[ve])?(he[ve]={},g(he[ve],S[ve]),g(he[ve],V[ve])):V[ve]!=null?he[ve]=V[ve]:delete he[ve]);for(ve in S)D(S,ve)&&!D(V,ve)&&I(S[ve])&&(he[ve]=g({},he[ve]));return he}function n(S){S!=null&&this.set(S)}var a;Object.keys?a=Object.keys:a=function(S){var V,he=[];for(V in S)D(S,V)&&he.push(V);return he};var l={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function f(S,V,he){var ve=this._calendar[S]||this._calendar.sameElse;return c(ve)?ve.call(V,he):ve}function b(S,V,he){var ve=""+Math.abs(S),Ce=V-ve.length,Ve=S>=0;return(Ve?he?"+":"":"-")+Math.pow(10,Math.max(0,Ce)).toString().substr(1)+ve}var C=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,$=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,W={},R={};function L(S,V,he,ve){var Ce=ve;typeof ve=="string"&&(Ce=function(){return this[ve]()}),S&&(R[S]=Ce),V&&(R[V[0]]=function(){return b(Ce.apply(this,arguments),V[1],V[2])}),he&&(R[he]=function(){return this.localeData().ordinal(Ce.apply(this,arguments),S)})}function q(S){return S.match(/\[[\s\S]/)?S.replace(/^\[|\]$/g,""):S.replace(/\\/g,"")}function ee(S){var V=S.match(C),he,ve;for(he=0,ve=V.length;he<ve;he++)R[V[he]]?V[he]=R[V[he]]:V[he]=q(V[he]);return function(Ce){var Ve="",ht;for(ht=0;ht<ve;ht++)Ve+=c(V[ht])?V[ht].call(Ce,S):V[ht];return Ve}}function ae(S,V){return S.isValid()?(V=fe(V,S.localeData()),W[V]=W[V]||ee(V),W[V](S)):S.localeData().invalidDate()}function fe(S,V){var he=5;function ve(Ce){return V.longDateFormat(Ce)||Ce}for($.lastIndex=0;he>=0&&$.test(S);)S=S.replace($,ve),$.lastIndex=0,he-=1;return S}var Ee={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function se(S){var V=this._longDateFormat[S],he=this._longDateFormat[S.toUpperCase()];return V||!he?V:(this._longDateFormat[S]=he.match(C).map(function(ve){return ve==="MMMM"||ve==="MM"||ve==="DD"||ve==="dddd"?ve.slice(1):ve}).join(""),this._longDateFormat[S])}var B="Invalid date";function K(){return this._invalidDate}var j="%d",x=/\d{1,2}/;function z(S){return this._ordinal.replace("%d",S)}var Z={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function oe(S,V,he,ve){var Ce=this._relativeTime[he];return c(Ce)?Ce(S,V,he,ve):Ce.replace(/%d/i,S)}function Y(S,V){var he=this._relativeTime[S>0?"future":"past"];return c(he)?he(V):he.replace(/%s/i,V)}var le={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ge(S){return typeof S=="string"?le[S]||le[S.toLowerCase()]:void 0}function Re(S){var V={},he,ve;for(ve in S)D(S,ve)&&(he=ge(ve),he&&(V[he]=S[ve]));return V}var Ae={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function De(S){var V=[],he;for(he in S)D(S,he)&&V.push({unit:he,priority:Ae[he]});return V.sort(function(ve,Ce){return ve.priority-Ce.priority}),V}var $e=/\d/,Ye=/\d\d/,rt=/\d{3}/,bt=/\d{4}/,ut=/[+-]?\d{6}/,Me=/\d\d?/,Ge=/\d\d\d\d?/,Ze=/\d\d\d\d\d\d?/,ft=/\d{1,3}/,Mt=/\d{1,4}/,ue=/[+-]?\d{1,6}/,G=/\d+/,te=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,_e=/Z|[+-]\d\d(?::?\d\d)?/gi,Pe=/[+-]?\d+(\.\d{1,3})?/,je=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,
Line truncated
|
||||
`)}},{"./der":19,inherits:147}],22:[function(m,U,k){(function(p,w){"use strict";function v(se,B){if(!se)throw new Error(B||"Assertion failed")}function h(se,B){se.super_=B;var K=function(){};K.prototype=B.prototype,se.prototype=new K,se.prototype.constructor=se}function e(se,B,K){return e.isBN(se)?se:(this.negative=0,this.words=null,this.length=0,this.red=null,void(se!==null&&((B==="le"||B==="be")&&(K=B,B=10),this._init(se||0,B||10,K||"be"))))}function o(se,B){var K=se.charCodeAt(B);return 65<=K&&70>=K?K-55:97<=K&&102>=K?K-87:15&K-48}function i(se,B,K){var j=o(se,K);return K-1>=B&&(j|=o(se,K-1)<<4),j}function u(se,B,K,j){for(var x=0,z=J(se.length,K),Z=B,oe;Z<z;Z++)oe=se.charCodeAt(Z)-48,x*=j,x+=49<=oe?oe-49+10:17<=oe?oe-17+10:oe;return x}function c(se){for(var B=Array(se.bitLength()),K=0;K<B.length;K++){var j=0|K/26,x=K%26;B[K]=(se.words[j]&1<<x)>>>x}return B}function s(se,B,K){K.negative=B.negative^se.negative;var j=0|se.length+B.length;K.length=j,j=0|j-1;var x=0|se.words[0],z=0|B.words[0],Z=x*z,oe=67108863&Z,Y=0|Z/67108864;K.words[0]=oe;for(var le=1;le<j;le++){for(var ge=Y>>>26,Re=67108863&Y,Ae=J(le,B.length-1),De=F(0,le-se.length+1),$e;De<=Ae;De++)$e=0|le-De,x=0|se.words[$e],z=0|B.words[De],Z=x*z+Re,ge+=0|Z/67108864,Re=67108863&Z;K.words[le]=0|Re,Y=0|ge}return Y===0?K.length--:K.words[le]=0|Y,K.strip()}function t(se,B,K){K.negative=B.negative^se.negative,K.length=se.length+B.length;for(var j=0,x=0,z=0,Z;z<K.length-1;z++){Z=x,x=0;for(var oe=67108863&j,Y=J(z,B.length-1),le=F(0,z-se.length+1);le<=Y;le++){var ge=z-le,Re=0|se.words[ge],Ae=0|B.words[le],De=Re*Ae,$e=67108863&De;Z=0|Z+(0|De/67108864),$e=0|$e+oe,oe=67108863&$e,Z=0|Z+($e>>>26),x+=Z>>>26,Z&=67108863}K.words[z]=oe,j=Z,Z=x}return j===0?K.length--:K.words[z]=j,K.strip()}function n(se,B,K){var j=new a;return j.mulp(se,B,K)}function a(se,B){this.x=se,this.y=B}function l(se,B){this.name=se,this.p=new e(B,16),this.n=this.p.bitLength(),this.k=new e(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function f(){l.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){l.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){l.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function $(){l.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function W(se){if(typeof se=="string"){var B=e._prime(se);this.m=B.p,this.prime=B}else v(se.gtn(1),"modulus must be greater than 1"),this.m=se,this.prime=null}function R(se){W.call(this,se),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new e(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}typeof p=="object"?p.exports=e:w.BN=e,e.BN=e,e.wordSize=26;var L;try{L=typeof window!="undefined"&&typeof window.Buffer!="undefined"?window.Buffer:m("buffer").Buffer}catch{}e.isBN=function(B){return B instanceof e||B!==null&&typeof B=="object"&&B.constructor.wordSize===e.wordSize&&Array.isArray(B.words)},e.max=function(B,K){return 0<B.cmp(K)?B:K},e.min=function(B,K){return 0>B.cmp(K)?B:K},e.prototype._init=function(B,K,j){if(typeof B=="number")return this._initNumber(B,K,j);if(typeof B=="object")return this._initArray(B,K,j);K==="hex"&&(K=16),v(K===(0|K)&&2<=K&&36>=K),B=B.toString().replace(/\s+/g,"");var x=0;B[0]==="-"&&(x++,this.negative=1),x<B.length&&(K===16?this._parseHex(B,x,j):(this._parseBase(B,K,x),j==="le"&&this._initArray(this.toArray(),K,j)))},e.prototype._initNumber=function(B,K,j){0>B&&(this.negative=1,B=-B),67108864>B?(this.words=[67108863&B],this.length=1):4503599627370496>B?(this.words=[67108863&B,67108863&B/67108864],this.length=2):(v(9007199254740992>B),this.words=[67108863&B,67108863&B/67108864,1],this.length=3),j!=="le"||this._initArray(this.toArray(),K,j)},e.prototype._initArray=function(B,K,j){if(v(typeof B.length=="number"),0>=B.length)return this.words=[0],this.length=1,this;this.length=N(B.length/3),this.words=Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var z=0,Z,oe;if(j==="be")for(x=B.length-1,Z=0;0<=x;x-=3)oe=B[x]|B[x-1]<<8|B[x-2]<<16,this.words[Z]|=67108863&oe<<z,this.words[Z+1]=67108863&oe>>>26-z,z+=24,26<=z&&(z-=26,Z++);else if(j==="le")for(x=0,Z=0;x<B.length;x+=3)oe=B[x]|B[x+1]<<8|B[x+2]<<16,this.words[Z]|=67108863&oe<<z,this.words[Z+1]=67108863&oe>>>26-z,z+=24,26<=z&&(z-=26,Z++);return this.strip()},e.prototype._parseHex=function(B,K,j){this.length=N((B.length-K)/6),this.words=Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var z=0,Z=0,oe;if(j==="be")for(x=B.length-1;x>=K;x-=2)oe=i(B,K,x)<<z,this.words[Z]|=67108863&oe,18<=z?(z-=18,Z+=1,this.words[Z]|=oe>>>26):z+=8;else{var Y=B.length-K;for(x=Y%2==0?K+1:K;x<B.length;x+=2)oe=i(B,K,x)<<z,this.words[Z]|=67108863&oe,18<=z?(z-=18,Z+=1,this.words[Z]|=oe>>>26):z+=8}this.strip()},e.
Line truncated
|
||||
we accept pull requests
|
||||
https://github.com/crypto-browserify/crypto-browserify`)},k.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":60,"browserify-sign":67,"browserify-sign/algos":64,"create-ecdh":83,"create-hash":85,"create-hmac":87,"diffie-hellman":99,pbkdf2:186,"public-encrypt":194,randombytes:209,randomfill:210}],91:[function(m,U,k){(function(p){(function(){function w(){return!!(typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))||!(typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function v(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+U.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;u.splice(1,0,c,"color: inherit");let s=0,t=0;u[0].replace(/%[a-zA-Z%]/g,n=>{n==="%%"||(s++,n==="%c"&&(t=s))}),u.splice(t,0,c)}function h(u){try{u?k.storage.setItem("debug",u):k.storage.removeItem("debug")}catch{}}function e(){let u;try{u=k.storage.getItem("debug")}catch{}return!u&&typeof p!="undefined"&&"env"in p&&(u=p.env.DEBUG),u}function o(){try{return localStorage}catch{}}k.formatArgs=v,k.save=h,k.load=e,k.useColors=w,k.storage=o(),k.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),k.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],k.log=console.debug||console.log||(()=>{}),U.exports=m("./common")(k);let{formatters:i}=U.exports;i.j=function(u){try{return JSON.stringify(u)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}}).call(this)}).call(this,m("_process"))},{"./common":92,_process:193}],92:[function(m,U,k){function p(w){function v(n){let a=0;for(let l=0;l<n.length;l++)a=(a<<5)-a+n.charCodeAt(l),a|=0;return h.colors[O(a)%h.colors.length]}function h(n){function a(...$){if(!a.enabled)return;let W=a,R=+new Date,L=R-(f||R);W.diff=L,W.prev=f,W.curr=R,f=R,$[0]=h.coerce($[0]),typeof $[0]!="string"&&$.unshift("%O");let q=0;$[0]=$[0].replace(/%([a-zA-Z%])/g,(ae,fe)=>{if(ae==="%%")return"%";q++;let Ee=h.formatters[fe];if(typeof Ee=="function"){let se=$[q];ae=Ee.call(W,se),$.splice(q,1),q--}return ae}),h.formatArgs.call(W,$),(W.log||h.log).apply(W,$)}let l=null,f,b,C;return a.namespace=n,a.useColors=h.useColors(),a.color=h.selectColor(n),a.extend=e,a.destroy=h.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>l===null?(b!==h.namespaces&&(b=h.namespaces,C=h.enabled(n)),C):l,set:$=>{l=$}}),typeof h.init=="function"&&h.init(a),a}function e(n,a){let l=h(this.namespace+(typeof a=="undefined"?":":a)+n);return l.log=this.log,l}function o(n){h.save(n),h.namespaces=n,h.names=[],h.skips=[];let a,l=(typeof n=="string"?n:"").split(/[\s,]+/),f=l.length;for(a=0;a<f;a++)l[a]&&(n=l[a].replace(/\*/g,".*?"),n[0]==="-"?h.skips.push(new RegExp("^"+n.slice(1)+"$")):h.names.push(new RegExp("^"+n+"$")))}function i(){let n=[...h.names.map(c),...h.skips.map(c).map(a=>"-"+a)].join(",");return h.enable(""),n}function u(n){if(n[n.length-1]==="*")return!0;let a,l;for(a=0,l=h.skips.length;a<l;a++)if(h.skips[a].test(n))return!1;for(a=0,l=h.names.length;a<l;a++)if(h.names[a].test(n))return!0;return!1}function c(n){return n.toString().substring(2,n.toString().length-2).replace(/\.\*\?$/,"*")}function s(n){return n instanceof Error?n.stack||n.
Line truncated
|
||||
Use Chrome, Firefox or Internet Explorer 11`)}function h(c,s){if(c>4294967295)throw new RangeError("requested too many random bytes");var t=i.allocUnsafe(c);if(0<c)if(65536<c)for(var n=0;n<c;n+=65536)u.getRandomValues(t.slice(n,n+65536));else u.getRandomValues(t);return typeof s=="function"?p.nextTick(function(){s(null,t)}):t}var e=65536,o=4294967295,i=m("safe-buffer").Buffer,u=w.crypto||w.msCrypto;U.exports=u&&u.getRandomValues?h:v}).call(this)}).call(this,m("_process"),typeof global=="undefined"?typeof self=="undefined"?typeof window=="undefined"?{}:window:self:global)},{_process:193,"safe-buffer":235}],210:[function(m,U,k){(function(p,w){(function(){"use strict";function v(){throw new Error(`secure random number generation not supported by this browser
|
||||
use chrome, FireFox or Internet Explorer 11`)}function h(f,b){if(typeof f!="number"||f!==f)throw new TypeError("offset must be a number");if(4294967295<f||0>f)throw new TypeError("offset must be a uint32");if(f>n||f>b)throw new RangeError("offset out of range")}function e(f,b,C){if(typeof f!="number"||f!==f)throw new TypeError("size must be a number");if(4294967295<f||0>f)throw new TypeError("size must be a uint32");if(f+b>C||f>n)throw new RangeError("buffer too small")}function o(f,b,C,$){if(!t.isBuffer(f)&&!(f instanceof w.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof b=="function")$=b,b=0,C=f.length;else if(typeof C=="function")$=C,C=f.length-b;else if(typeof $!="function")throw new TypeError('"cb" argument must be a function');return h(b,f.length),e(C,b,f.length),i(f,b,C,$)}function i(f,b,C,$){if(p.browser){var W=f.buffer,R=new Uint8Array(W,b,C);return a.getRandomValues(R),$?void p.nextTick(function(){$(null,f)}):f}if($)return void s(C,function(q,ee){return q?$(q):(ee.copy(f,b),void $(null,f))});var L=s(C);return L.copy(f,b),f}function u(f,b,C){if(typeof b=="undefined"&&(b=0),!t.isBuffer(f)&&!(f instanceof w.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return h(b,f.length),C===void 0&&(C=f.length-b),e(C,b,f.length),i(f,b,C)}var c=m("safe-buffer"),s=m("randombytes"),t=c.Buffer,n=c.kMaxLength,a=w.crypto||w.msCrypto,l=A(2,32)-1;a&&a.getRandomValues||!p.browser?(k.randomFill=o,k.randomFillSync=u):(k.randomFill=v,k.randomFillSync=v)}).call(this)}).call(this,m("_process"),typeof global=="undefined"?typeof self=="undefined"?typeof window=="undefined"?{}:window:self:global)},{_process:193,randombytes:209,"safe-buffer":235}],211:[function(m,U,k){"use strict";function p(i,u,c){if(typeof u!="string")throw new TypeError("argument str must be a string");var s=u.indexOf("=");if(s===-1)return-2;var t=u.slice(s+1).split(","),n=[];n.type=u.slice(0,s);for(var a=0;a<t.length;a++){var l=t[a].split("-"),f=parseInt(l[0],10),b=parseInt(l[1],10);isNaN(f)?(f=i-b,b=i-1):isNaN(b)&&(b=i-1),b>i-1&&(b=i-1),!(isNaN(f)||isNaN(b)||f>b||0>f)&&n.push({start:f,end:b})}return 1>n.length?-1:c&&c.combine?w(n):n}function w(i){for(var u=i.map(v).sort(o),c=0,s=1;s<u.length;s++){var t=u[s],n=u[c];t.start>n.end+1?u[++c]=t:t.end>n.end&&(n.end=t.end,n.index=J(n.index,t.index))}u.length=c+1;var a=u.sort(e).map(h);return a.type=i.type,a}function v(i,u){return{start:i.start,end:i.end,index:u}}function h(i){return{start:i.start,end:i.end}}function e(i,u){return i.index-u.index}function o(i,u){return i.start-u.start}U.exports=p},{}],212:[function(m,U,k){let{Writable:p,PassThrough:w}=m("readable-stream");class v extends p{constructor(e,o={}){super(o),this.destroyed=!1,this._queue=[],this._position=e||0,this._cb=null,this._buffer=null,this._out=null}_write(e,o,i){let u=!0;for(;;){if(this.destroyed)return;if(this._queue.length===0)return this._buffer=e,void(this._cb=i);this._buffer=null;var c=this._queue[0];let s=F(c.start-this._position,0),t=c.end-this._position;if(s>=e.length)return this._position+=e.length,i(null);let n;if(t>e.length){this._position+=e.length,n=s===0?e:e.slice(s),u=c.stream.write(n)&&u;break}this._position+=t,n=s===0&&t===e.length?e:e.slice(s,t),u=c.stream.write(n)&&u,c.last&&c.stream.end(),e=e.slice(t),this._queue.shift()}u?i(null):c.stream.once("drain",i.bind(null,null))}slice(e){if(this.destroyed)return null;Array.isArray(e)||(e=[e]);let o=new w;return e.forEach((i,u)=>{this._queue.push({start:i.start,end:i.end,stream:o,last:u===e.length-1})}),this._buffer&&this._write(this._buffer,null,this._cb),o}destroy(e){this.destroyed||(this.destroyed=!0,e&&this.emit("error",e))}}U.exports=v},{"readable-stream":228}],213:[function(m,U,k){"use strict";function p(c){return parseInt(c,10)===c}function w(c){function s(){for(var a=Array(c),l=0;l<c;l++)a[l]=l;return a}function t(a){if(a===void 0){a=Array(c);for(var l=0;l<c;l++)a[l]=I(Math.random()*c)}else if(typeof a=="string")a=""+a,a=a.split("").map(function(R){return R.charCodeAt(0)%c});else if(Array.isArray(a)){if(!a.every(function(R){return typeof R=="number"&&R===(0|R)}))throw new TypeError("invalid seed key specified: not array of integers")}else throw new TypeError("invalid seed key specified");for(var f=a.length,b=s(),C=0,$=0;$<c;$++){C=(C+b[$]+a[$%f])%c;var W=b[$];b[$]=b[C],b[C]=W}return b}function n(a){this.s=t(a),this.i=0,this.j=0}return n.prototype.randomNative=function(){this.i=(this.i+1)%c,this.j=(this.j+this.s[this.i])%c;var a=this.s[this.i];this.s[this.i]=this.s[this.j],this.s[this.j]=a;var l=this.s[(this.s[this.i]+this.s[this.j])%c];return l},n.prototype.randomUInt32=function(){var a=this.randomByte(),l=this.randomByte(),f=this.randomByte(),b=this.randomByte();return 256*(256*(256*a+l)+f)+b},n.prototype.randomFloat=function(){return this.randomUInt32()/4294967296},n.prototype.random=function(){var a,l;if(arguments.length===1)a=0,l=arguments[0];else if(arguments.length===2)a=arguments[0],l=arguments[1];
Line truncated
|
||||
`}),f=f+"("+h.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+l.main.map(function(R){return""+JSON.stringify(R)+": "+a.main[R].toString()}).join(",")+"})(self);";var b=new window.Blob([f],{type:"text/javascript"});if(n.bare)return b;var C=window.URL||window.webkitURL||window.mozURL||window.msURL,$=C.createObjectURL(b),W=new window.Worker($);return W.objectURL=$,W}},function(p,w){p.exports=function(h,e,o){function i(c,s){c|=0,s|=0;var t=0,n=0,a=0,l=0,f=0,b=0,C=0,$=0,W=0,R=0,L=0,q=0,ee=0,ae=0;for(a=0|u[s+320>>2],f=0|u[s+324>>2],C=0|u[s+328>>2],W=0|u[s+332>>2],L=0|u[s+336>>2],t=0;(0|t)<(0|c);t=0|t+64){for(l=a,b=f,$=C,R=W,q=L,n=0;64>(0|n);n=0|n+4)ae=0|u[t+n>>2],ee=0|(0|(a<<5|a>>>27)+(f&C|~f&W))+(0|(0|ae+L)+1518500249),L=W,W=C,C=f<<30|f>>>2,f=a,a=ee,u[c+n>>2]=ae;for(n=0|c+64;(0|n)<(0|c+80);n=0|n+4)ae=(u[n-12>>2]^u[n-32>>2]^u[n-56>>2]^u[n-64>>2])<<1|(u[n-12>>2]^u[n-32>>2]^u[n-56>>2]^u[n-64>>2])>>>31,ee=0|(0|(a<<5|a>>>27)+(f&C|~f&W))+(0|(0|ae+L)+1518500249),L=W,W=C,C=f<<30|f>>>2,f=a,a=ee,u[n>>2]=ae;for(n=0|c+80;(0|n)<(0|c+160);n=0|n+4)ae=(u[n-12>>2]^u[n-32>>2]^u[n-56>>2]^u[n-64>>2])<<1|(u[n-12>>2]^u[n-32>>2]^u[n-56>>2]^u[n-64>>2])>>>31,ee=0|(0|(a<<5|a>>>27)+(f^C^W))+(0|(0|ae+L)+1859775393),L=W,W=C,C=f<<30|f>>>2,f=a,a=ee,u[n>>2]=ae;for(n=0|c+160;(0|n)<(0|c+240);n=0|n+4)ae=(u[n-12>>2]^u[n-32>>2]^u[n-56>>2]^u[n-64>>2])<<1|(u[n-12>>2]^u[n-32>>2]^u[n-56>>2]^u[n-64>>2])>>>31,ee=0|(0|(a<<5|a>>>27)+(f&C|f&W|C&W))+(0|(0|ae+L)-1894007588),L=W,W=C,C=f<<30|f>>>2,f=a,a=ee,u[n>>2]=ae;for(n=0|c+240;(0|n)<(0|c+320);n=0|n+4)ae=(u[n-12>>2]^u[n-32>>2]^u[n-56>>2]^u[n-64>>2])<<1|(u[n-12>>2]^u[n-32>>2]^u[n-56>>2]^u[n-64>>2])>>>31,ee=0|(0|(a<<5|a>>>27)+(f^C^W))+(0|(0|ae+L)-899497514),L=W,W=C,C=f<<30|f>>>2,f=a,a=ee,u[n>>2]=ae;a=0|a+l,f=0|f+b,C=0|C+$,W=0|W+R,L=0|L+q}u[s+320>>2]=a,u[s+324>>2]=f,u[s+328>>2]=C,u[s+332>>2]=W,u[s+336>>2]=L}var u=new h.Int32Array(o);return{hash:i}}},function(p,w){var v=this,h=void 0;typeof self!="undefined"&&typeof self.FileReaderSync!="undefined"&&(h=new self.FileReaderSync);var e=function(u,c,s,t,n,a){var l=a%4,f=(n+l)%4,b=n-f,C;switch(l){case 0:c[a]=u.charCodeAt(t+3);case 1:c[0|a+1-(l<<1)]=u.charCodeAt(t+2);case 2:c[0|a+2-(l<<1)]=u.charCodeAt(t+1);case 3:c[0|a+3-(l<<1)]=u.charCodeAt(t)}if(!(n<f+(4-l))){for(C=4-l;C<b;C=0|C+4)s[a+C>>2]=u.charCodeAt(t+C)<<24|u.charCodeAt(t+C+1)<<16|u.charCodeAt(t+C+2)<<8|u.charCodeAt(t+C+3);switch(f){case 3:c[0|a+b+1]=u.charCodeAt(t+b+2);case 2:c[0|a+b+2]=u.charCodeAt(t+b+1);case 1:c[0|a+b+3]=u.charCodeAt(t+b)}}},o=function(u,c,s,t,n,a){var l=a%4,f=(n+l)%4,b=n-f,C;switch(l){case 0:c[a]=u[t+3];case 1:c[0|a+1-(l<<1)]=u[t+2];case 2:c[0|a+2-(l<<1)]=u[t+1];case 3:c[0|a+3-(l<<1)]=u[t]}if(!(n<f+(4-l))){for(C=4-l;C<b;C=0|C+4)s[0|a+C>>2]=u[t+C]<<24|u[t+C+1]<<16|u[t+C+2]<<8|u[t+C+3];switch(f){case 3:c[0|a+b+1]=u[t+b+2];case 2:c[0|a+b+2]=u[t+b+1];case 1:c[0|a+b+3]=u[t+b]}}},i=function(u,c,s,t,n,a){var l=void 0,f=a%4,b=(n+f)%4,C=n-b,$=new Uint8Array(h.readAsArrayBuffer(u.slice(t,t+n)));switch(f){case 0:c[a]=$[3];case 1:c[0|a+1-(f<<1)]=$[2];case 2:c[0|a+2-(f<<1)]=$[1];case 3:c[0|a+3-(f<<1)]=$[0]}if(!(n<b+(4-f))){for(l=4-f;l<C;l=0|l+4)s[0|a+l>>2]=$[l]<<24|$[l+1]<<16|$[l+2]<<8|$[l+3];switch(b){case 3:c[0|a+C+1]=$[C+2];case 2:c[0|a+C+2]=$[C+1];case 1:c[0|a+C+3]=$[C]}}};p.exports=function(u,c,s,t,n,a){if(typeof u=="string")return e(u,c,s,t,n,a);if(u instanceof Array||v&&v.Buffer&&v.Buffer.isBuffer(u))return o(u,c,s,t,n,a);if(u instanceof ArrayBuffer)return o(new Uint8Array(u),c,s,t,n,a);if(u.buffer instanceof ArrayBuffer)return o(new Uint8Array(u.buffer,u.byteOffset,u.byteLength),c,s,t,n,a);if(u instanceof Blob)return i(u,c,s,t,n,a);throw new Error("Unsupported data type.")}},function(p,w,v){function h(s,t){if(!(s instanceof t))throw new TypeError("Cannot call a class as a function")}var e=(function(){function s(t,n){for(var a=0,l;a<n.length;a++)l=n[a],l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}return function(t,n,a){return n&&s(t.prototype,n),a&&s(t,a),t}})(),o=v(0),i=v(1),u=i.toHex,c=(function(){function s(){h(this,s),this._rusha=new o,this._rusha.resetState()}return s.prototype.update=function(n){return this._rusha.append(n),this},s.prototype.digest=function(n){var a=this._rusha.rawEnd().buffer;if(!n)return a;if(n==="hex")return u(a);throw new Error("unsupported digest encoding")},e(s,[{key:"state",get:function(){return this._rusha.getState()},set:function(t){this._rusha.setState(t)}}]),s})();p.exports=function(){return new c}}])})},{}],235:[function(m,U,k){function p(e,o){for(var i in e)o[i]=e[i]}function w(e,o,i){return h(e,o,i)}var v=m("buffer"),h=v.Buffer;h.from&&h.alloc&&h.allocUnsafe&&h.allocUnsafeSlow?U.exports=v:(p(v,k),k.Buffer=w),w.prototype=Object.create(h.prototype),p(h,w),w.from=function(e,o,i){if(typeof e=="number")throw new TypeError("Argument must not be a number");return h(e,o,i)},w.alloc=function(e,o,i){if(typeof e!="number")throw new TypeError("Argument must be a number");var u=h(e);return o===v
Line truncated
|
||||
`," "],n=["{","}","|","\\","^","`"].concat(t),a=["'"].concat(n),l=["%","/","?",";","#"].concat(a),f=["/","?","#"],b=255,C=/^[+a-z0-9A-Z_-]{0,63}$/,$=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,W={javascript:!0,"javascript:":!0},R={javascript:!0,"javascript:":!0},L={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},q=m("querystring");p.prototype.parse=function(ee,ae,fe){if(!i.isString(ee))throw new TypeError("Parameter 'url' must be a string, not "+typeof ee);var Ee=ee.indexOf("?"),se=Ee!==-1&&Ee<ee.indexOf("#")?"?":"#",B=ee.split(se),K=/\\/g;B[0]=B[0].replace(K,"/"),ee=B.join(se);var j=ee;if(j=j.trim(),!fe&&ee.split("#").length===1){var x=s.exec(j);if(x)return this.path=j,this.href=j,this.pathname=x[1],x[2]?(this.search=x[2],this.query=ae?q.parse(this.search.substr(1)):this.search.substr(1)):ae&&(this.search="",this.query={}),this}var z=u.exec(j);if(z){z=z[0];var Z=z.toLowerCase();this.protocol=Z,j=j.substr(z.length)}if(fe||z||j.match(/^\/\/[^@\/]+@[^@\/]+/)){var oe=j.substr(0,2)==="//";oe&&!(z&&R[z])&&(j=j.substr(2),this.slashes=!0)}if(!R[z]&&(oe||z&&!L[z])){for(var Y=-1,le=0,ge;le<f.length;le++)ge=j.indexOf(f[le]),ge!==-1&&(Y===-1||ge<Y)&&(Y=ge);var Re,Ae;Ae=Y===-1?j.lastIndexOf("@"):j.lastIndexOf("@",Y),Ae!==-1&&(Re=j.slice(0,Ae),j=j.slice(Ae+1),this.auth=decodeURIComponent(Re)),Y=-1;for(var le=0,ge;le<l.length;le++)ge=j.indexOf(l[le]),ge!==-1&&(Y===-1||ge<Y)&&(Y=ge);Y===-1&&(Y=j.length),this.host=j.slice(0,Y),j=j.slice(Y),this.parseHost(),this.hostname=this.hostname||"";var De=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!De){for(var $e=this.hostname.split(/\./),le=0,Ye=$e.length,rt;le<Ye;le++)if(rt=$e[le],rt&&!rt.match(C)){for(var bt="",ut=0,Me=rt.length;ut<Me;ut++)bt+=127<rt.charCodeAt(ut)?"x":rt[ut];if(!bt.match(C)){var Ge=$e.slice(0,le),Ze=$e.slice(le+1),ft=rt.match($);ft&&(Ge.push(ft[1]),Ze.unshift(ft[2])),Ze.length&&(j="/"+Ze.join(".")+j),this.hostname=Ge.join(".");break}}}this.hostname=255<this.hostname.length?"":this.hostname.toLowerCase(),De||(this.hostname=o.toASCII(this.hostname));var Mt=this.port?":"+this.port:"",ue=this.hostname||"";this.host=ue+Mt,this.href+=this.host,De&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),j[0]!=="/"&&(j="/"+j))}if(!W[Z]){for(var le=0,Ye=a.length,G;le<Ye;le++)if(G=a[le],j.indexOf(G)!==-1){var te=encodeURIComponent(G);te===G&&(te=escape(G)),j=j.split(G).join(te)}}var de=j.indexOf("#");de!==-1&&(this.hash=j.substr(de),j=j.slice(0,de));var _e=j.indexOf("?");if(_e===-1?ae&&(this.search="",this.query={}):(this.search=j.substr(_e),this.query=j.substr(_e+1),ae&&(this.query=q.parse(this.query)),j=j.slice(0,_e)),j&&(this.pathname=j),L[Z]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Mt=this.pathname||"",Pe=this.search||"";this.path=Mt+Pe}return this.href=this.format(),this},p.prototype.format=function(){var ee=this.auth||"";ee&&(ee=encodeURIComponent(ee),ee=ee.replace(/%3A/i,":"),ee+="@");var ae=this.protocol||"",fe=this.pathname||"",Ee=this.hash||"",se=!1,B="";this.host?se=ee+this.host:this.hostname&&(se=ee+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(se+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(B=q.stringify(this.query));var K=this.search||B&&"?"+B||"";return ae&&ae.substr(-1)!==":"&&(ae+=":"),this.slashes||(!ae||L[ae])&&se!==!1?(se="//"+(se||""),fe&&fe.charAt(0)!=="/"&&(fe="/"+fe)):!se&&(se=""),Ee&&Ee.charAt(0)!=="#"&&(Ee="#"+Ee),K&&K.charAt(0)!=="?"&&(K="?"+K),fe=fe.replace(/[?#]/g,function(j){return encodeURIComponent(j)}),K=K.replace("#","%23"),ae+se+fe+K+Ee},p.prototype.resolve=function(ee){return this.resolveObject(w(ee,!1,!0)).format()},p.prototype.resolveObject=function(ee){if(i.isString(ee)){var ae=new p;ae.parse(ee,!1,!0),ee=ae}for(var fe=new p,Ee=Object.keys(this),se=0,B;se<Ee.length;se++)B=Ee[se],fe[B]=this[B];if(fe.hash=ee.hash,ee.href==="")return fe.href=fe.format(),fe;if(ee.slashes&&!ee.protocol){for(var K=Object.keys(ee),j=0,x;j<K.length;j++)x=K[j],x!=="protocol"&&(fe[x]=ee[x]);return L[fe.protocol]&&fe.hostname&&!fe.pathname&&(fe.path=fe.pathname="/"),fe.href=fe.format(),fe}if(ee.protocol&&ee.protocol!==fe.protocol){if(!L[ee.protocol]){for(var z=Object.keys(ee),Z=0,oe;Z<z.length;Z++)oe=z[Z],fe[oe]=ee[oe];return fe.href=fe.format(),fe}if(fe.protocol=ee.protocol,!ee.host&&!R[ee.protocol]){for(var Ye=(ee.pathname||"").split("/");Ye.length&&!(ee.host=Ye.shift()););ee.host||(ee.host=""),ee.hostname||(ee.hostname=""),Ye[0]!==""&&Ye.unshift(""),2>Ye.length&&Ye.unshift(""),fe.pathname=Ye.join("/")}else fe.pathname=ee.pathname;if(fe.search=ee.search,fe.query=ee.query,fe.host=ee.host||"",fe.auth=ee.auth,fe.hostname=ee.hostname||ee.host,fe.port=ee.port,fe.pathname||fe.search){var Y=fe.pathname||"",le=fe.search||"";fe.path=Y+le}return fe.slashes=fe.slashes||ee.slashes,fe.href=fe.format(),fe}var ge=fe.pathname&&fe.pathname.charAt(0)==="/",Re=ee.host||ee.pathname&&ee.pat
Line truncated
|
||||
.grid`+g.grid.id+" .ui-grid-render-container-"+_.containerId+" .ui-grid-canvas { width: "+v+"px; height: "+e+"px; }",w+=`
|
||||
.grid`+g.grid.id+" .ui-grid-render-container-"+_.containerId+" .ui-grid-header-canvas { width: "+(v+N.scrollbarWidth)+"px; }",k.explicitHeaderCanvasHeight){var c=document.querySelector(".grid"+g.grid.id+" .ui-grid-render-container-body .ui-grid-header-canvas");c&&(k.explicitHeaderCanvasHeight=c.offsetHeight),w+=`
|
||||
.grid`+g.grid.id+" .ui-grid-render-container-"+_.containerId+" .ui-grid-header-canvas { height: "+k.explicitHeaderCanvasHeight+"px; }"}else w+=`
|
||||
.grid`+g.grid.id+" .ui-grid-render-container-"+_.containerId+" .ui-grid-header-canvas { height: inherit; }";return w+=`
|
||||
.grid`+g.grid.id+" .ui-grid-render-container-"+_.containerId+" .ui-grid-viewport { width: "+h+"px; height: "+o+"px; }",w+=`
|
||||
.grid`+g.grid.id+" .ui-grid-render-container-"+_.containerId+" .ui-grid-header-viewport { width: "+i+"px; }",w+=`
|
||||
.grid`+g.grid.id+" .ui-grid-render-container-"+_.containerId+" .ui-grid-footer-canvas { width: "+(v+N.scrollbarWidth)+"px; }",w+=`
|
||||
.grid`+g.grid.id+" .ui-grid-render-container-"+_.containerId+" .ui-grid-footer-viewport { width: "+u+"px; }",w}g.grid.registerStyleComputation({priority:6,func:p})}}}}}]),we.controller("uiGridRenderContainer",["$scope","gridUtil",function(Q,A){}])})();(function(){"use strict";angular.module("ui.grid").directive("uiGridRow",function(){return{replace:!0,require:["^uiGrid","^uiGridRenderContainer"],scope:{row:"=uiGridRow",rowRenderIndex:"="},compile:function(){return{pre:function(we,Q,A,O){var I=O[0],D=O[1];we.grid=I.grid,we.colContainer=D.colContainer;var T,_;function E(){we.row.getRowTemplateFn.then(function(d){var M=we.$new();d(M,function(g,F){T&&(T.remove(),_.$destroy()),Q.empty().append(g),T=g,_=M})}).catch(angular.noop)}E(),we.$watch("row.getRowTemplateFn",function(d,M){d!==M&&E()})},post:function(we,Q){we.row.element=Q}}}}})})();(function(){angular.module("ui.grid").directive("uiGridStyle",["gridUtil","$interpolate",function(we,Q){return{link:function(A,O){var I=Q(O.text(),!0);I&&A.$watch(I,function(D){for(var T=0;T<O.length;T++)O[T].textContent=D})}}}])})();(function(){"use strict";angular.module("ui.grid").directive("uiGridViewport",["gridUtil","ScrollEvent",function(we,Q){return{replace:!0,scope:{},controllerAs:"Viewport",templateUrl:"ui-grid/uiGridViewport",require:["^uiGrid","^uiGridRenderContainer"],link:function(A,O,I,D){var T=D[0],_=D[1];A.containerCtrl=_;var E=_.rowContainer,d=_.colContainer,M=T.grid;A.grid=T.grid,A.rowContainer=_.rowContainer,A.colContainer=_.colContainer,_.viewport=O,M&&M.options&&M.options.customScroller?M.options.customScroller(O,F):O.on("scroll",F);var g=!1;function F(){var U=O[0].scrollTop,k=we.normalizeScrollLeft(O,M),p=E.scrollVertical(U),w=d.scrollHorizontal(k),v=new Q(M,E,d,Q.Sources.ViewPortScroll);v.newScrollLeft=k,v.newScrollTop=U,w>-1&&(v.x={percentage:w}),p>-1&&(v.y={percentage:p}),M.scrollContainers(A.$parent.containerId,v)}A.$parent.bindScrollVertical&&M.addVerticalScrollSync(A.$parent.containerId,N),A.$parent.bindScrollHorizontal&&(M.addHorizontalScrollSync(A.$parent.containerId,J),M.addHorizontalScrollSync(A.$parent.containerId+"header",pe),M.addHorizontalScrollSync(A.$parent.containerId+"footer",m));function N(U){_.prevScrollArgs=U,O[0].scrollTop=U.getNewScrollTop(E,_.viewport)}function J(U){_.prevScrollArgs=U;var k=U.getNewScrollLeft(d,_.viewport);O[0].scrollLeft=we.denormalizeScrollLeft(_.viewport,k,M)}function pe(U){var k=U.getNewScrollLeft(d,_.viewport);_.headerViewport&&(_.headerViewport.scrollLeft=we.denormalizeScrollLeft(_.viewport,k,M))}function m(U){var k=U.getNewScrollLeft(d,_.viewport);_.footerViewport&&(_.footerViewport.scrollLeft=we.denormalizeScrollLeft(_.viewport,k,M))}A.$on("$destroy",function(){O.off()})},controller:["$scope",function(A){this.rowStyle=function(){var O=A.rowContainer,I=A.colContainer,D={};if(O.currentTopRow!==0){var T="translateY("+O.currentTopRow*O.grid.options.rowHeight+"px)";D.transform=T,D["-webkit-transform"]=T,D["-ms-transform"]=T}return I.currentFirstColumn!==0&&(I.grid.isRTL()?D["margin-right"]=I.columnOffset+"px":D["margin-left"]=I.columnOffset+"px"),D}}]}}])})();(function(){angular.module("ui.grid").directive("uiGridVisible",function(){return function(Q,A,O){Q.$watch(O.uiGridVisible,function(I){A[I?"removeClass":"addClass"]("ui-grid-invisible")})}})})();(function(){"use strict";angular.module("ui.grid").controller("uiGridController",["$scope","$element","$attrs","gridUtil","$q","uiGridConstants","gridClassFactory","$parse","$compile",function(Q,A,O,I,D,T,_,E,d){var M=this,g=[];M.grid=_.createGrid(Q.uiGrid),M.grid.appScope=M.grid.appScope||Q.$parent,A.addClass("grid"+M.grid.id),M.grid.rtl=I.getStyles(A[0]).direction==="rtl",Q.grid=M.grid,O.uiGridColumns&&g.push(O.$observe("uiGridColumns",function(U){M.grid.options.columnDefs=angular.isString(U)?angular.fromJson(U):U,M.grid.buildColumns().then(function(){M.grid.preCompileCellTemplates(),M.grid.refreshCanvas(!0)}).catch(angular.noop)}));function F(U){return U?U.length:0}M.grid.options.fastWatch?(M.uiGrid=Q.uiGrid,angular.isString(Q.uiGrid.data)?(g.push(Q.$parent.$watch(Q.uiGrid.data,pe)),g.push(Q.$parent.$watch(function(){if(M.grid.appScope[Q.uiGrid.data])return M.grid.appScope[Q.uiGrid.data].length},pe))):(g.push(Q.$parent.$watch(function(){return Q.uiGrid.data},pe)),g.push(Q.$parent.$watch(function(){return F(Q.uiGrid.data)},function(){pe(Q.uiGrid.data)}))),g.push(Q.$parent.$watch(function(){return Q.uiGrid.columnDefs},N)),g.push(Q.$parent.$watch(function(){return F(Q.uiGrid.columnDefs)},function(){N(Q.uiGrid.columnDefs)}))):(angular.isString(Q.uiGrid.data)?g.push(Q.$parent.$watchCollection(Q.uiGrid.data,pe)):g.push(Q.$parent.$watchCollection(function(){return Q.uiGrid.data},pe)),g.push(Q.$parent.$watchCollection(function(){return Q.uiGrid.columnDefs},N)));function N(U,k){U&&U!==k&&(M.grid.options.columnDefs=Q.uiGrid.columnDefs,M.grid.callDataChangeCallbacks(T.dataChange.COLUMN,{orderByColumnDefs:!0,preCompileCellTemplates:!0}))}var J;function pe(U){var k=[];if(M.g
Line truncated
|
||||
`+i)})},J.prototype.minColumnsToRender=function(){var e=this,o=this.getViewportWidth(),i=0,u=0;return e.columns.forEach(function(c,s){if(u<o)u+=c.drawnWidth,i++;else{for(var t=0,n=s;n>=s-i;n--)t+=e.columns[n].drawnWidth;t<o&&i++}}),i},J.prototype.getBodyHeight=function(){return this.getViewportHeight()},J.prototype.getViewportHeight=function(){var e=this,o=this.gridHeight-this.headerHeight-this.footerHeight,i=e.getViewportAdjustment();return o=o+i.height,o>0?o:0},J.prototype.getViewportWidth=function(){var e=this,o=this.gridWidth,i=e.getViewportAdjustment();return o=o+i.width,o},J.prototype.getHeaderViewportWidth=function(){return this.getViewportWidth()},J.prototype.addVerticalScrollSync=function(h,e){this.verticalScrollSyncCallBackFns[h]=e},J.prototype.addHorizontalScrollSync=function(h,e){this.horizontalScrollSyncCallBackFns[h]=e},J.prototype.scrollContainers=function(h,e){if(e.y){var o=["body","left","right"];this.flagScrollingVertically(e),h==="body"?o=["left","right"]:h==="left"?o=["body","right"]:h==="right"&&(o=["body","left"]);for(var i=0;i<o.length;i++){var u=o[i];this.verticalScrollSyncCallBackFns[u]&&this.verticalScrollSyncCallBackFns[u](e)}}if(e.x){var c=["body","bodyheader","bodyfooter"];this.flagScrollingHorizontally(e),h==="body"&&(c=["bodyheader","bodyfooter"]);for(var s=0;s<c.length;s++){var t=c[s];this.horizontalScrollSyncCallBackFns[t]&&this.horizontalScrollSyncCallBackFns[t](e)}}},J.prototype.registerViewportAdjuster=function(e){this.viewportAdjusters.push(e)},J.prototype.removeViewportAdjuster=function(e){var o=this.viewportAdjusters.indexOf(e);typeof o!="undefined"&&o!==void 0&&this.viewportAdjusters.splice(o,1)},J.prototype.getViewportAdjustment=function(){var e=this,o={height:0,width:0};return e.viewportAdjusters.forEach(function(i){o=i.call(this,o)}),o},J.prototype.getVisibleRowCount=function(){return this.renderContainers.body.visibleRowCache.length},J.prototype.getVisibleRows=function(){return this.renderContainers.body.visibleRowCache},J.prototype.getVisibleColumnCount=function(){return this.renderContainers.body.visibleColumnCache.length},J.prototype.searchRows=function(e){return M.search(this,e,this.columns)},J.prototype.sortByColumn=function(e){return d.sort(this,e,this.columns)},J.prototype.getCellValue=function(e,o){return typeof e.entity["$$"+o.uid]!="undefined"?e.entity["$$"+o.uid].rendered:this.options.flatEntityAccess&&typeof o.field!="undefined"?e.entity[o.field]:(o.cellValueGetterCache||(o.cellValueGetterCache=A(e.getEntityQualifiedColField(o))),o.cellValueGetterCache(e))},J.prototype.getCellDisplayValue=function(e,o){if(!o.cellDisplayGetterCache){var i=o.cellFilter?" | "+o.cellFilter:"";if(typeof e.entity["$$"+o.uid]!="undefined")o.cellDisplayGetterCache=A(e.entity["$$"+o.uid].rendered+i);else if(this.options.flatEntityAccess&&typeof o.field!="undefined"){var u=o.field.replace(/(')|(\\)/g,"\\$&");o.cellDisplayGetterCache=A("entity['"+u+"']"+i)}else o.cellDisplayGetterCache=A(e.getEntityQualifiedColField(o)+i)}var c=angular.extend({},e,{col:o});return o.cellDisplayGetterCache(c)},J.prototype.getNextColumnSortPriority=function(){var e=this,o=0;return e.columns.forEach(function(i){i.sort&&i.sort.priority!==void 0&&i.sort.priority>=o&&(o=i.sort.priority+1)}),o},J.prototype.resetColumnSorting=function(e){var o=this;o.columns.forEach(function(i){i!==e&&!i.suppressRemoveSort&&(i.sort={})})},J.prototype.getColumnSorting=function(){var e=this,o=[],i;return i=e.columns.slice(0),i.sort(d.prioritySort).forEach(function(u){u.sort&&typeof u.sort.direction!="undefined"&&u.sort.direction&&(u.sort.direction===I.ASC||u.sort.direction===I.DESC)&&o.push(u)}),o},J.prototype.sortColumn=function(e,o,i){var u=this,c=null;if(typeof e=="undefined"||!e)throw new Error("No column parameter provided");if(typeof o=="boolean"?i=o:c=o,!i||u.options&&u.options.suppressMultiSort?(u.resetColumnSorting(e),e.sort.priority=void 0,e.sort.priority=u.getNextColumnSortPriority()):e.sort.priority===void 0&&(e.sort.priority=u.getNextColumnSortPriority()),c)e.sort.direction=c;else{var s=e.sortDirectionCycle.indexOf(e.sort&&e.sort.direction?e.sort.direction:null);s=(s+1)%e.sortDirectionCycle.length,e.colDef&&e.suppressRemoveSort&&!e.sortDirectionCycle[s]&&(s=(s+1)%e.sortDirectionCycle.length),e.sortDirectionCycle[s]?e.sort.direction=e.sortDirectionCycle[s]:m(e,u)}return u.api.core.raise.sortChanged(u,u.getColumnSorting()),we.when(e)};var m=function(e,o){o.columns.forEach(function(i){i.sort&&i.sort.priority!==void 0&&i.sort.priority>e.sort.priority&&(i.sort.priority-=1)}),e.sort={}};J.prototype.renderingComplete=function(){angular.isFunction(this.options.onRegisterApi)&&this.options.onRegisterApi(this.api),this.api.core.raise.renderingComplete(this.api)},J.prototype.createRowHashMap=function(){var e=this,o=new v;return o.grid=e,o},J.prototype.refresh=function(e){var o=this,i=o.processRowsProcessors(o.rows).then(function(c){o.setVisibleRows(c)}).catch(angular.noop),u=o.processColumnsProcessors(o.columns).then(fun
Line truncated
|
||||
`:"";return m+=F.map(this.formatRowAsCsv(this,N)).join(`
|
||||
`),m},formatRowAsCsv:function(g,F){return function(N){return N.map(g.formatFieldAsCsv).join(F)}},formatFieldAsCsv:function(g){return g.value==null?"":typeof g.value=="number"?g.value:typeof g.value=="boolean"?g.value?"TRUE":"FALSE":typeof g.value=="string"?'"'+g.value.replace(/"/g,'""')+'"':typeof g.value=="object"&&!(g.value instanceof Date)?'"'+JSON.stringify(g.value).replace(/"/g,'""')+'"':JSON.stringify(g.value)},isIE:function(){var g=navigator.userAgent.search(/(?:Edge|MSIE|Trident\/.*; rv:)/),F=!1;return g!==-1&&(F=!0),F},downloadFile:function(g,F,N,J,pe){var m=document,U=m.createElement("a"),k="application/octet-stream;charset=utf-8",p,w=this.isIE();if(pe&&(F="sep="+N+`\r
|
||||
`+F),navigator.msSaveBlob)return navigator.msSaveOrOpenBlob(new Blob([J?"\uFEFF":"",F],{type:k}),g);if(w){var v=m.createElement("iframe");return document.body.appendChild(v),v.contentWindow.document.open("text/html","replace"),v.contentWindow.document.write(F),v.contentWindow.document.close(),v.contentWindow.focus(),v.contentWindow.document.execCommand("SaveAs",!0,g),document.body.removeChild(v),!0}if("download"in U){var h=new Blob([J?"\uFEFF":"",F],{type:k});p=URL.createObjectURL(h),U.setAttribute("download",g)}else p="data: "+k+","+encodeURIComponent(F),U.setAttribute("target","_blank");U.href=p,U.setAttribute("style","display:none;"),m.body.appendChild(U),setTimeout(function(){if(U.click)U.click();else if(document.createEvent){var e=document.createEvent("MouseEvents");e.initEvent("click",!0,!0),U.dispatchEvent(e)}m.body.removeChild(U)},this.delay)},pdfExport:function(g,F,N){var J=this;J.type="pdf",this.loadAllDataIfNeeded(g,F,N).then(function(){var pe=J.getColumnHeaders(g,N),m=J.getData(g,F,N),U=J.prepareAsPdf(g,pe,m);if(J.isIE()||navigator.appVersion.indexOf("Edge")!==-1){var k=angular.isFunction(g.options.exporterPdfFilename)?g.options.exporterPdfFilename(g,F,N):g.options.exporterPdfFilename;J.downloadPDF(k,U)}else pdfMake.createPdf(U).open()})},downloadPDF:function(g,F){var N=document,J=N.createElement("a"),pe;pe=this.isIE();var m=pdfMake.createPdf(F),U;m.getBuffer(function(k){if(U=new Blob([k]),navigator.msSaveBlob)return navigator.msSaveBlob(U,g);if(pe){var p=N.createElement("iframe");return document.body.appendChild(p),p.contentWindow.document.open("text/html","replace"),p.contentWindow.document.write(U),p.contentWindow.document.close(),p.contentWindow.focus(),p.contentWindow.document.execCommand("SaveAs",!0,g),document.body.removeChild(p),!0}})},prepareAsPdf:function(g,F,N){var J=this.calculatePdfHeaderWidths(g,F),pe=F.map(function(p){return{text:p.displayName,style:"tableHeader"}}),m=N.map(this.formatRowAsPdf(this)),U=[pe].concat(m),k={pageOrientation:g.options.exporterPdfOrientation,pageSize:g.options.exporterPdfPageSize,content:[{style:"tableStyle",table:{headerRows:1,widths:J,body:U}}],styles:{tableStyle:g.options.exporterPdfTableStyle,tableHeader:g.options.exporterPdfTableHeaderStyle},defaultStyle:g.options.exporterPdfDefaultStyle};return g.options.exporterPdfLayout&&(k.layout=g.options.exporterPdfLayout),g.options.exporterPdfHeader&&(k.header=g.options.exporterPdfHeader),g.options.exporterPdfFooter&&(k.footer=g.options.exporterPdfFooter),g.options.exporterPdfCustomFormatter&&(k=g.options.exporterPdfCustomFormatter(k)),k},calculatePdfHeaderWidths:function(g,F){var N=0;F.forEach(function(m){typeof m.width=="number"&&(N+=m.width)});var J=0;F.forEach(function(m){if(m.width==="*"&&(J+=100),typeof m.width=="string"&&m.width.match(/(\d)*%/)){var U=parseInt(m.width.match(/(\d)*%/)[0]);m.width=N*U/100,J+=m.width}});var pe=N+J;return F.map(function(m){return m.width==="*"?m.width:m.width*g.options.exporterPdfMaxGridWidth/pe})},formatRowAsPdf:function(g){return function(F){return F.map(g.formatFieldAsPdfString)}},formatFieldAsPdfString:function(g){var F;return g.value==null?F="":typeof g.value=="number"?F=g.value.toString():typeof g.value=="boolean"?F=g.value?"TRUE":"FALSE":typeof g.value=="string"?F=g.value.replace(/"/g,'""'):g.value instanceof Date?F=JSON.stringify(g.value).replace(/^"/,"").replace(/"$/,""):typeof g.value=="object"?F=g.value:F=JSON.stringify(g.value).replace(/^"/,"").replace(/"$/,""),g.alignment&&typeof g.alignment=="string"&&(F={text:F,alignment:g.alignment}),F},formatAsExcel:function(g,F,N,J,pe){for(var m=g.map(function(o){return{value:o.displayName}}),U=[],k=[],p=0;p<m.length;p++){var w="header";switch(g[p].align){case"center":w="headerCenter";break;case"right":w="headerRight";break}var v=pe.styles&&pe.styles[w]?{style:pe.styles[w].id}:null;k.push({value:m[p].value,metadata:v})}U.push(k);for(var h=F.map(this.formatRowAsExcel(this,N,J)),e=0;e<h.length;e++)U.push(h[e]);return U},formatRowAsExcel:function(g,F,N){return function(J){for(var pe=[],m=0;m<J.length;m++){var U=g.formatFieldAsExcel(J[m],F,N);pe.push({value:U,metadata:J[m].metadata})}return pe}},formatFieldAsExcel:function(g,F,N,J){return g.value==null?"":typeof g.value=="number"||typeof g.value=="string"?g.value:typeof g.value=="boolean"?g.value?"TRUE":"FALSE":JSON.stringify(g.value)},prepareAsExcel:function(g,F,N){var J={styles:{}};if(g.options.exporterExcelCustomFormatters&&(J=g.options.exporterExcelCustomFormatters(g,F,J)),g.options.exporterExcelHeader)if(angular.isFunction(g.options.exporterExcelHeader))g.options.exporterExcelHeader(g,F,N,J);else{var pe=g.options.exporterExcelHeader.text,m=g.options.exporterExcelHeader.style;N.data.push([{value:pe,metadata:{style:J.styles[m].id}}])}return J},excelExport:function(g,F,N){var J=this;J.type="excel",this.loadAllDataIfNeeded(g,F,N).then(function(){var pe=g.options.showHeader?J.getColumnHeaders(g,N):[],m="Sheet1";g.options.exporterExcelSheetName&&(m=angular.isFunction(g.option
Line truncated
|
||||
`,M="",g=T.getErrorMessages(_,E);if(g.length)return g.forEach(function(F){M+=F+d}),Q.trustAsHtml(I.getSafeText("validate.error")+d+M)},runValidators:function(_,E,d,M,g){if(d!==M){if(typeof E.name=="undefined"||!E.name)throw new Error("colDef.name is required to perform validation");T.setValid(_,E);var F=function(U,k,p){return function(w){w||(T.setInvalid(U,k),T.setError(U,k,p),g&&g.api.validate.raise.validationFailed(U,k,d,M))}},N=[];for(var J in E.validators){T.clearError(_,E,J);var pe=T.getValidator(J,E.validators[J]),m=A.when(pe(M,d,_,E)).then(F(_,E,J));N.push(m)}return A.all(N)}},createDefaultValidators:function(){T.setValidator("minLength",function(_){return function(E,d){return d==null||d===""?!0:d.length>=_}},function(_){return I.getSafeText("validate.minLength").replace("THRESHOLD",_)}),T.setValidator("maxLength",function(_){return function(E,d){return d==null||d===""?!0:d.length<=_}},function(_){return I.getSafeText("validate.maxLength").replace("THRESHOLD",_)}),T.setValidator("required",function(_){return function(E,d){return _?!(d==null||d===""):!0}},function(){return I.getSafeText("validate.required")})},initializeGrid:function(_,E){E.validate={isInvalid:T.isInvalid,getErrorMessages:T.getErrorMessages,getFormattedErrors:T.getFormattedErrors,getTitleFormattedErrors:T.getTitleFormattedErrors,runValidators:T.runValidators};var d={events:{validate:{validationFailed:function(M,g,F,N){}}},methods:{validate:{isInvalid:function(M,g){return E.validate.isInvalid(M,g)},getErrorMessages:function(M,g){return E.validate.getErrorMessages(M,g)},getFormattedErrors:function(M,g){return E.validate.getFormattedErrors(M,g)},getTitleFormattedErrors:function(M,g){return E.validate.getTitleFormattedErrors(M,g)}}}};E.api.registerEventsFromObject(d.events),E.api.registerMethodsFromObject(d.methods),E.edit&&E.api.edit.on.afterCellEdit(_,function(M,g,F,N){E.validate.runValidators(M,g,F,N,E)}),T.createDefaultValidators()}};return T}]),we.directive("uiGridValidate",["gridUtil","uiGridValidateService",function(Q,A){return{priority:0,replace:!0,require:"^uiGrid",scope:!1,compile:function(){return{pre:function(O,I,D,T){A.initializeGrid(O,T.grid)},post:function(O,I,D,T){}}}}}])})();angular.module("ui.grid").run(["$templateCache",function(we){"use strict";we.put("ui-grid/ui-grid-filter",`<div class="ui-grid-filter-container" ng-style="col.extraStyle" ng-repeat="colFilter in col.filters" ng-class="{'ui-grid-filter-cancel-button-hidden' : colFilter.disableCancelFilterButton === true }"><div ng-if="colFilter.type !== 'select'"><input type="text" class="ui-grid-filter-input ui-grid-filter-input-{{$index}}" ng-model="colFilter.term" ng-attr-placeholder="{{colFilter.placeholder || ''}}" aria-label="{{colFilter.ariaLabel || aria.defaultFilterLabel}}"><div role="button" class="ui-grid-filter-button" ng-click="removeFilter(colFilter, $index)" ng-if="!colFilter.disableCancelFilterButton" ng-disabled="colFilter.term === undefined || colFilter.term === null || colFilter.term === ''" ng-show="colFilter.term !== undefined && colFilter.term !== null && colFilter.term !== ''"><i class="ui-grid-icon-cancel" ui-grid-one-bind-aria-label="aria.removeFilter"> </i></div></div><div ng-if="colFilter.type === 'select'"><select class="ui-grid-filter-select ui-grid-filter-input-{{$index}}" ng-model="colFilter.term" ng-show="colFilter.selectOptions.length > 0" ng-attr-placeholder="{{colFilter.placeholder || aria.defaultFilterLabel}}" aria-label="{{colFilter.ariaLabel || ''}}" ng-options="option.value as option.label for option in colFilter.selectOptions"><option value=""></option></select><div role="button" class="ui-grid-filter-button-select" ng-click="removeFilter(colFilter, $index)" ng-if="!colFilter.disableCancelFilterButton" ng-disabled="colFilter.term === undefined || colFilter.term === null || colFilter.term === ''" ng-show="colFilter.term !== undefined && colFilter.term != null"><i class="ui-grid-icon-cancel" ui-grid-one-bind-aria-label="aria.removeFilter"> </i></div></div></div>`),we.put("ui-grid/ui-grid-footer",'<div class="ui-grid-footer-panel ui-grid-footer-aggregates-row"><!-- tfooter --><div class="ui-grid-footer ui-grid-footer-viewport"><div class="ui-grid-footer-canvas"><div class="ui-grid-footer-cell-wrapper" ng-style="colContainer.headerCellWrapperStyle()"><div role="row" class="ui-grid-footer-cell-row"><div ui-grid-footer-cell role="gridcell" ng-repeat="col in colContainer.renderedColumns track by col.uid" col="col" render-index="$index" class="ui-grid-footer-cell ui-grid-clearfix"></div></div></div></div></div></div>'),we.put("ui-grid/ui-grid-grid-footer",`<div class="ui-grid-footer-info ui-grid-grid-footer"><span>{{'search.totalItems' | t}} {{grid.rows.length}}</span> <span ng-if="grid.renderContainers.body.visibleRowCache.length !== grid.rows.length" class="ngLabel">({{"search.showingItems" | t}} {{grid.renderContainers.body.visibleRowCache.length}})</span></div>`),we.put("ui-grid/ui-grid-header",'<div role="rowgroup" class=Line truncated
|
||||
/* Styles for the grid */
|
||||
}
|
||||
|
||||
.grid{{ grid.id }} .ui-grid-row, .grid{{ grid.id }} .ui-grid-cell, .grid{{ grid.id }} .ui-grid-cell .ui-grid-vertical-bar {
|
||||
height: {{ grid.options.rowHeight }}px;
|
||||
}
|
||||
|
||||
.grid{{ grid.id }} .ui-grid-row:last-child .ui-grid-cell {
|
||||
border-bottom-width: {{ (((grid.getVisibleRowCount() * grid.options.rowHeight) < grid.getViewportHeight()) && '1') || '0' }}px;
|
||||
}
|
||||
|
||||
{{ grid.verticalScrollbarStyles }}
|
||||
{{ grid.horizontalScrollbarStyles }}
|
||||
|
||||
/*
|
||||
.ui-grid[dir=rtl] .ui-grid-viewport {
|
||||
padding-left: {{ grid.verticalScrollbarWidth }}px;
|
||||
}
|
||||
*/
|
||||
|
||||
{{ grid.customStyles }}</style><div class="ui-grid-contents-wrapper" role="grid"><div ui-grid-menu-button ng-if="grid.options.enableGridMenu"></div><div ng-if="grid.hasLeftContainer()" style="width: 0" ui-grid-pinned-container="'left'"></div><div ui-grid-render-container container-id="'body'" col-container-name="'body'" row-container-name="'body'" bind-scroll-horizontal="true" bind-scroll-vertical="true" enable-horizontal-scrollbar="grid.options.enableHorizontalScrollbar" enable-vertical-scrollbar="grid.options.enableVerticalScrollbar"></div><div ng-if="grid.hasRightContainer()" style="width: 0" ui-grid-pinned-container="'right'"></div><div ui-grid-grid-footer ng-if="grid.options.showGridFooter"></div><div ui-grid-column-menu ng-if="grid.options.enableColumnMenus"></div><div ng-transclude></div></div></div>`),we.put("ui-grid/uiGridCell",'<div class="ui-grid-cell-contents" title="TOOLTIP">{{COL_FIELD CUSTOM_FILTERS}}</div>'),we.put("ui-grid/uiGridColumnMenu",`<div class="ui-grid-column-menu"><div ui-grid-menu menu-items="menuItems" col="col"><!-- <div class="ui-grid-column-menu">
|
||||
<div class="inner" ng-show="menuShown">
|
||||
<ul>
|
||||
<div ng-show="grid.options.enableSorting">
|
||||
<li ng-click="sortColumn($event, asc)" ng-class="{ 'selected' : col.sort.direction == asc }"><i class="ui-grid-icon-sort-alt-up"></i> Sort Ascending</li>
|
||||
<li ng-click="sortColumn($event, desc)" ng-class="{ 'selected' : col.sort.direction == desc }"><i class="ui-grid-icon-sort-alt-down"></i> Sort Descending</li>
|
||||
<li ng-show="col.sort.direction" ng-click="unsortColumn()"><i class="ui-grid-icon-cancel"></i> Remove Sort</li>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
</div> --></div></div>`),we.put("ui-grid/uiGridFooterCell",'<div class="ui-grid-cell-contents" col-index="renderIndex"><div>{{ col.getAggregationText() + ( col.getAggregationValue() CUSTOM_FILTERS ) }}</div></div>'),we.put("ui-grid/uiGridHeaderCell",`<div role="columnheader" ng-class="{ 'sortable': sortable, 'ui-grid-header-cell-last-col': isLastCol }" ui-grid-one-bind-aria-labelledby-grid="col.uid + '-header-text ' + col.uid + '-sortdir-text'" aria-sort="{{col.sort.direction == asc ? 'ascending' : ( col.sort.direction == desc ? 'descending' : (!col.sort.direction ? 'none' : 'other'))}}"><div role="button" tabindex="0" ng-keydown="handleKeyDown($event)" class="ui-grid-cell-contents ui-grid-header-cell-primary-focus" col-index="renderIndex" title="TOOLTIP"><span class="ui-grid-header-cell-label" ui-grid-one-bind-id-grid="col.uid + '-header-text'">{{ col.displayName CUSTOM_FILTERS }}</span> <span ui-grid-one-bind-id-grid="col.uid + '-sortdir-text'" ui-grid-visible="col.sort.direction" aria-label="{{getSortDirectionAriaLabel()}}"><i ng-class="{ 'ui-grid-icon-up-dir': col.sort.direction == asc, 'ui-grid-icon-down-dir': col.sort.direction == desc, 'ui-grid-icon-blank': !col.sort.direction }" title="{{isSortPriorityVisible() ? i18n.headerCell.priority + ' ' + ( col.sort.priority + 1 ) : null}}" aria-hidden="true"></i> <sub ui-grid-visible="isSortPriorityVisible()" class="ui-grid-sort-priority-number">{{col.sort.priority + 1}}</sub></span></div><div role="button" tabindex="0" ui-grid-one-bind-id-grid="col.uid + '-menu-button'" class="ui-grid-column-menu-button" ng-if="grid.options.enableColumnMenus && !col.isRowHeader && col.colDef.enableColumnMenu !== false" ng-click="toggleMenu($event)" ng-keydown="headerCellArrowKeyDown($event)" ui-grid-one-bind-aria-label="i18n.headerCell.aria.columnMenuButtonLabel" aria-expanded="{{col.menuShown}}" aria-haspopup="true"><i class="ui-grid-icon-angle-down" aria-hidden="true"> </i></div><div ui-grid-filter ng-hide="col.filterContainer === 'columnMenu'"></div></div>`),we.put("ui-grid/uiGridMenu",`<div class="ui-grid-menu" ng-keydown="checkKeyDown($event)" ng-show="shown"><style ui-grid-style>{{dynamicStyles}}</style><div class="ui-grid-menu-mid" ng-show="shownMid"><div class="ui-grid-menu-inner" ng-if="shown"><ul role="menu" class="ui-grid-menu-items"><li ng-repeat="item in menuItems" role="menuitem" ui-grid-menu-item ui-grid-one-bind-id="'menuitem-'+$index" action="item.action" name="item.title" active="item.active" icon="item.icon" shown="item.shown" context="item.context" template-url="item.templateUrl" leave-open="item.leaveOpen" screen-reader-only="item.screenReaderOnly"></li><li ng-if="col.filterable && col.filterContainer === 'columnMenu'"><div ui-grid-filter></div></li></ul></div></div></div>`),we.put("ui-grid/uiGridMenuItem",`<button type="button" class="ui-grid-menu-item" ng-click="itemAction($event, title)" ng-show="itemShown()" ng-class="{ 'ui-grid-menu-item-active': active(), 'ui-grid-sr-only': (!focus && screenReaderOnly) }" aria-pressed="{{active()}}" tabindex="0" ng-focus="focus=true" ng-blur="focus=false"><i ng-class="icon" aria-hidden="true"> </i>{{ label() }}</button>`),we.put("ui-grid/uiGridRenderContainer",`<div role="presentation" ui-grid-one-bind-id-grid="containerId + '-grid-container'" class="ui-grid-render-container" ng-style="{ 'margin-left': colContainer.getMargin('left') + 'px', 'margin-right': colContainer.getMargin('right') + 'px' }"><!-- All of these dom elements are replaced in place --><div ui-grid-header></div><div ui-grid-viewport></div><div ng-if="colContainer.needsHScrollbarPlaceholder()" class="ui-grid-scrollbar-placeholder" ng-style="{height: colContainer.grid.scrollbarHeight + 'px'}"></div><ui-grid-footer ng-if="grid.options.showColumnFooter"></ui-grid-footer></div>`),we.put("ui-grid/uiGridViewport",'<div role="rowgroup" class="ui-grid-viewport" ng-style="colContainer.getViewportStyle()"><!-- tbody --><div class="ui-grid-canvas"><div ng-repeat="(rowRenderIndex, row) in rowContainer.renderedRows track by $index" class="ui-grid-row" ng-style="Viewport.rowStyle(rowRenderIndex)"><div role="row" ui-grid-row="row" row-render-index="rowRenderIndex"></div></div></div></div>'),we.put("ui-grid/cellEditor",`<div><form name="inputForm"><input type="INPUT_TYPE" ng-class="'colt' + col.uid" ui-grid-editor ng-model="MODEL_COL_FIELD"></form></div>`),we.put("ui-grid/dropdownEditor",`<div><form name="inputForm"><select ng-class="'colt' + col.uid" ui-grid-edit-dropdown ng-model="MODEL_COL_FIELD" ng-options="field[editDropdownIdLabel] as field[editDropdownValueLabel] CUSTOM_FILTERS for field in editDropdownOptionsArray"></select></form></div>`),we.put("ui-grid/fileChooserEditor",`<div><form name="inputForm"><input ng-class="'colt' + col.uid" ui-grid-edit-file-chooser type="file" id="files" name="files[]" ng-model="MODEL_COL_FIELD"></form></div>`),we.put("ui-grid/emptyBaseLayerContainer",'<div class="ui-grid-empty-base-layer-container ui-grid-canLine truncated
|
||||
Valid base64 characters are A-Z, a-z, 0-9, `+", "/`,and "="
|
||||
`+"Expect errors in decoding."),E=E.replace(/[^A-Za-z0-9\+\/\=]/g,"");do F=this.KEY_STR.indexOf(E.charAt(m++)),N=this.KEY_STR.indexOf(E.charAt(m++)),J=this.KEY_STR.indexOf(E.charAt(m++)),pe=this.KEY_STR.indexOf(E.charAt(m++)),d=F<<2|N>>4,M=(N&15)<<4|J>>2,g=(J&3)<<6|pe,U.push(d),J!==64&&U.push(M),pe!==64&&U.push(g),d=M=g="",F=N=J=pe="";while(m<E.length);return U},_.restore(D,T)},A}]);(function(){"use strict";var we=angular.module("ngNotify",[]),Q=!1;try{angular.module("ngSanitize")&&(angular.module("ngNotify").requires.push("ngSanitize"),Q=!0)}catch{}var A='<div class="ngn" ng-class="ngNotify.notifyClass" ng-style="ngNotify.notifyStyle"><span ng-show="ngNotify.notifyButton" class="ngn-dismiss" ng-click="dismiss()">×</span><span ng-if="ngNotify.notifyHtml" ng-bind-html="ngNotify.notifyMessage"></span><span ng-if="!ngNotify.notifyHtml" ng-bind="ngNotify.notifyMessage"></span></div>';we.run(["$templateCache",function(O){O.put("templates/ng-notify/ng-notify.html",A)}]),we.provider("ngNotify",function(){this.$get=["$document","$compile","$log","$rootScope","$timeout","$interval","$templateCache",function(O,I,D,T,_,E,d){var M,g,F="",N=" ",J=3e3,pe="ngn-sticky",m=1,U=-1,k=200,p=500,w=25,v=0,h=1,e={theme:"pure",position:"bottom",duration:J,type:"info",sticky:!1,button:!0,html:!1},o={notifyClass:"",notifyMessage:"",notifyStyle:{display:"none",opacity:v}},i={pure:F,prime:"ngn-prime",pastel:"ngn-pastel",pitchy:"ngn-pitchy"},u={info:"ngn-info",error:"ngn-error",success:"ngn-success",warn:"ngn-warn",grimace:"ngn-grimace"},c={bottom:"ngn-bottom",top:"ngn-top"},s=T.$new(),t=I(d.get("templates/ng-notify/ng-notify.html"))(s);s.ngNotify=angular.extend({},o),_(function(){O.find("body").append(t)});var n=function(ae){var fe=ae.type||e.type;return(u[fe]||u.info)+N},a=function(ae){var fe=ae.theme||e.theme;return(i[fe]||i.pure)+N},l=function(ae){var fe=ae.position||e.position;return(c[fe]||c.bottom)+N},f=function(ae){var fe=ae.duration||e.duration;return angular.isNumber(fe)?fe:J},b=function(ae){var fe=ae.sticky!==void 0?ae.sticky:e.sticky;return!!fe},C=function(ae,fe){var Ee=ae.button!==void 0?ae.button:e.button;return Ee&&fe},$=function(ae){if((ae.html||e.html)&&!Q)return D.debug(`ngNotify warning:
|
||||
gSanitize couldn't be located. In order to use the 'html' option, be sure the ngSanitize source is included in your project.`),!1;var fe=ae.html!==void 0?ae.html:e.html;return!!fe},W=function(ae,fe){var Ee=n(ae)+a(ae)+l(ae);return Ee+=fe?pe:F},R=function(){s.ngNotify=angular.extend({},o)},L=function(ae,fe,Ee,se){var B=w/Ee;s.ngNotify.notifyStyle={display:"block",opacity:fe};var K=function(){fe+=ae*B,s.ngNotify.notifyStyle.opacity=fe,(v>=fe||fe>=h)&&(E.cancel(g),g=!1,se())};g||(g=E(K,w))},q=function(ae,fe){L(U,h,ae,fe)},ee=function(ae,fe){L(m,v,ae,fe)};return s.dismiss=function(){q(p,function(){R()})},{config:function(ae){ae=ae||{},angular.extend(e,ae)},set:function(ae,fe){if(ae){E.cancel(g),g=!1,_.cancel(M);var Ee={};typeof fe=="object"?Ee=fe:Ee.type=fe;var se=b(Ee),B=f(Ee);angular.extend(s.ngNotify,{notifyHtml:$(Ee),notifyClass:W(Ee,se),notifyButton:C(Ee,se),notifyMessage:ae}),ee(k,function(){se||(M=_(function(){s.dismiss()},B))})}},dismiss:function(){s.dismiss()},addTheme:function(ae,fe){ae&&fe&&(i[ae]=fe)},addType:function(ae,fe){ae&&fe&&(u[ae]=fe)}}}]})})();var rc=ta(Zu(),1),ra=ta(ec(),1),su=typeof window!="undefined"?window:globalThis,_d=ra.default&&ra.default.default?ra.default.default:ra.default;su.angular=tc.default;su.moment=rc.default;su.WebTorrent=_d;})();
|
||||
/*! Bundled license information:
|
||||
|
||||
angular/angular.js:
|
||||
angular-route/angular-route.js:
|
||||
angular-sanitize/angular-sanitize.js:
|
||||
(**
|
||||
* @license AngularJS v1.8.3
|
||||
* (c) 2010-2020 Google LLC. http://angularjs.org
|
||||
* License: MIT
|
||||
*)
|
||||
|
||||
moment/moment.js:
|
||||
(*! moment.js *)
|
||||
(*! version : 2.30.1 *)
|
||||
(*! authors : Tim Wood, Iskren Chernev, Moment.js contributors *)
|
||||
(*! license : MIT *)
|
||||
(*! momentjs.com *)
|
||||
|
||||
webtorrent/webtorrent.min.js:
|
||||
(*! bittorrent-protocol. MIT License. WebTorrent LLC <https://webtorrent.io/opensource> *)
|
||||
(*! blob-to-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
||||
(*!
|
||||
* The buffer module from node.js, for the browser.
|
||||
*
|
||||
* @author Feross Aboukhadijeh <https://feross.org>
|
||||
* @license MIT
|
||||
*)
|
||||
(*! cache-chunk-store. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
||||
(*! create-torrent. MIT License. WebTorrent LLC <https://webtorrent.io/opensource> *)
|
||||
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
||||
(*! immediate-chunk-store. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
||||
(*!
|
||||
* Determine if an object is a Buffer
|
||||
*
|
||||
* @author Feross Aboukhadijeh <https://feross.org>
|
||||
* @license MIT
|
||||
*)
|
||||
(*! lt_donthave. MIT License. WebTorrent LLC <https://webtorrent.io/opensource> *)
|
||||
(*! parse-torrent. MIT License. WebTorrent LLC <https://webtorrent.io/opensource> *)
|
||||
(*! https://mths.be/punycode v1.4.1 by @mathias *)
|
||||
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
||||
(*!
|
||||
* range-parser
|
||||
* Copyright(c) 2012-2014 TJ Holowaychuk
|
||||
* Copyright(c) 2015-2016 Douglas Christopher Wilson
|
||||
* MIT Licensed
|
||||
*)
|
||||
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
||||
(*! simple-concat. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
||||
(*! simple-peer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
||||
(*! simple-websocket. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
||||
(*! stream-to-blob. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
||||
(*! stream-with-known-length-to-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
||||
(*! torrent-discovery. MIT License. WebTorrent LLC <https://webtorrent.io/opensource> *)
|
||||
(*! torrent-piece. MIT License. WebTorrent LLC <https://webtorrent.io/opensource> *)
|
||||
(*! ut_metadata. MIT License. WebTorrent LLC <https://webtorrent.io/opensource> *)
|
||||
(*! webtorrent. MIT License. WebTorrent LLC <https://webtorrent.io/opensource> *)
|
||||
|
||||
angular-ui-grid/ui-grid.js:
|
||||
angular-ui-grid/ui-grid.resize-columns.js:
|
||||
angular-ui-grid/ui-grid.selection.js:
|
||||
(*!
|
||||
* ui-grid - v4.12.7 - 2024-04-12
|
||||
* http://ui-grid.info/
|
||||
* Copyright (c) 2024 ; License: MIT
|
||||
*)
|
||||
*/
|
||||
@@ -0,0 +1,23 @@
|
||||
import angular from "angular";
|
||||
import "angular-route";
|
||||
import "angular-sanitize";
|
||||
import "angular-ui-grid/ui-grid.js";
|
||||
import "angular-ui-grid/ui-grid.resize-columns.js";
|
||||
import "angular-ui-grid/ui-grid.selection.js";
|
||||
import "angular-ui-grid/ui-grid.min.css";
|
||||
import "ng-file-upload/dist/ng-file-upload.js";
|
||||
import "ng-notify/dist/ng-notify.min.js";
|
||||
import "ng-notify/dist/ng-notify.min.css";
|
||||
import moment from "moment";
|
||||
import WebTorrent from "webtorrent/webtorrent.min.js";
|
||||
|
||||
// Ensure Angular modules register on the shared angular instance.
|
||||
const globalScope = typeof window !== "undefined" ? window : globalThis;
|
||||
|
||||
const webTorrentInstance = WebTorrent && WebTorrent.default ? WebTorrent.default : WebTorrent;
|
||||
|
||||
globalScope.angular = angular;
|
||||
globalScope.moment = moment;
|
||||
globalScope.WebTorrent = webTorrentInstance;
|
||||
|
||||
export { angular, moment, WebTorrent };
|
||||
@@ -0,0 +1,36 @@
|
||||
import { applyDynamicStyles, removeDynamicStyles } from "../../js/ui/styleSystem.js";
|
||||
|
||||
const FALLBACK_CLASSES = {
|
||||
hiddenDownload: "torrent-download-anchor",
|
||||
clipboard: "torrent-clipboard-textarea",
|
||||
};
|
||||
|
||||
export function applyBeaconDynamicStyles(element, styleObject = {}, slotKey) {
|
||||
if (!element) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const slot = slotKey ? String(slotKey) : undefined;
|
||||
|
||||
if (slot && FALLBACK_CLASSES[slot]) {
|
||||
element.classList.add(FALLBACK_CLASSES[slot]);
|
||||
}
|
||||
|
||||
return applyDynamicStyles(element, styleObject, slot ? { slot } : {});
|
||||
}
|
||||
|
||||
export function removeBeaconDynamicStyles(element, slotKey) {
|
||||
if (!element) {
|
||||
return;
|
||||
}
|
||||
|
||||
const slot = slotKey ? String(slotKey) : undefined;
|
||||
|
||||
if (slot && FALLBACK_CLASSES[slot]) {
|
||||
element.classList.remove(FALLBACK_CLASSES[slot]);
|
||||
}
|
||||
|
||||
removeDynamicStyles(element, slot ? { slot } : {});
|
||||
}
|
||||
|
||||
export const beaconDynamicFallbackClasses = { ...FALLBACK_CLASSES };
|
||||
Reference in new issue
Block a user