angular-cn/aio/dist/main-es2015.a732537ab43995de39e0.js

2 lines
440 KiB
JavaScript
Raw Permalink Normal View History

(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{"/lUL":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var s=n("jtHE"),r=n("lJxs"),i=n("vkgz"),o=n("fXoL"),a=n("4MUX"),c=n("ofXK"),l=n("Faly");let u=(()=>{class t{constructor(t,e,n,o){this.gaService=t,this.location=e,this.scrollService=n,this.platformLocation=o,this.urlParser=document.createElement("a"),this.urlSubject=new s.a(1),this.fullPageNavigation=!1,this.currentUrl=this.urlSubject.pipe(Object(r.a)(t=>this.stripSlashes(t))),this.currentPath=this.currentUrl.pipe(Object(r.a)(t=>(t.match(/[^?#]*/)||[])[0]),Object(i.a)(t=>this.gaService.locationChanged(t))),this.urlSubject.next(e.path(!0)),this.location.subscribe(t=>this.urlSubject.next(t.url||""))}fullPageNavigationNeeded(){this.fullPageNavigation=!0}go(t){t&&(t=this.stripSlashes(t),/^http/.test(t)?this.goExternal(t):this.fullPageNavigation?(this.scrollService.removeStoredScrollInfo(),this.goExternal(t)):(this.location.go(t),this.urlSubject.next(t)))}goExternal(t){window.location.assign(t)}replace(t){window.location.replace(t)}reloadPage(){window.location.reload()}stripSlashes(t){return t.replace(/^\/+/,"").replace(/\/+(\?|#|$)/,"$1")}search(){const t={},e=this.location.path(),n=e.indexOf("?");if(n>-1)try{e.substr(n+1).split("&").forEach(e=>{const n=e.split("=");n[0]&&(t[decodeURIComponent(n[0])]=n[1]&&decodeURIComponent(n[1]))})}catch(s){}return t}setSearch(t,e){const n=Object.keys(e).reduce((t,n)=>{const s=e[n];return void 0===s?t:t+=(t?"&":"?")+`${encodeURIComponent(n)}=${encodeURIComponent(s)}`},"");this.platformLocation.replaceState({},t,this.platformLocation.pathname+n)}handleAnchorClick(t,e=0,n=!1,s=!1){if(0!==e||n||s)return!0;const r=t.target;if(r&&"_self"!==r)return!0;if(null!=t.getAttribute("download"))return!0;const{pathname:i,search:o,hash:a}=t,c=i+o+a;return this.urlParser.href=c,t.href!==this.urlParser.href||!/\/[^/.]*$/.test(i)||(this.go(c),!1)}}return t.\u0275fac=function(e){return new(e||t)(o.Xb(a.a),o.Xb(c.g),o.Xb(l.a),o.Xb(c.q))},t.\u0275prov=o.Kb({token:t,factory:t.\u0275fac}),t})()},"/uUt":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("7o/Q");function r(t,e){return n=>n.lift(new i(t,e))}class i{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}class o extends s.a{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(s){return this.destination.error(s)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(s){return this.destination.error(s)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},0:function(t,e,n){t.exports=n("zUnb")},"05l1":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var s=n("jtHE"),r=n("oB13");function i(t,e,n,i){n&&"function"!=typeof n&&(i=n);const o="function"==typeof n?n:void 0,a=new s.a(t,e,i);return t=>Object(r.a)(()=>a,o)(t)}},"1G5W":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var s=n("l7GE"),r=n("ZUHj");function i(t){return e=>e.lift(new o(t))}class o{constructor(t){this.notifier=t}call(t,e){const n=new a(t),s=Object(r.a)(n,this.notifier);return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class a extends s.a{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,s,r){this.seenValue=!0,this.complete()}notifyComplete(){}}},"2QA8":function(t,e,n){"use strict";n.d(e,"a",function(){return s});const s=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2fFW":function(t,e,n){"use strict";n.d(e,"a",function(){return r});let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}}},"3N8a":function(t,e,n){"use strict";n.d(e,"a",function(){return i
//# sourceMappingURL=main-es2015.a732537ab43995de39e0.js.map